What similarity function nltk.corpus.wordnet is suitable for finding similarity of two words?

What similarity function in nltk.corpus.wordnetSuitable for finding the similarity of two words?

 path_similarity()?
    lch_similarity()?
    wup_similarity()?
    res_similarity()?
    jcn_similarity()?
    lin_similarity()?

I want to use the function for word clusteringand yarowskyalgorightm to look for the same collocationin large text.

+5
source share
2 answers

These measures are actually intended for verbal feelings (or concepts), not words. This difference can make a difference. In other words, the word โ€œtrainโ€ can mean โ€œlocomotiveโ€ or โ€œlearn to do something.โ€ To use these measures, you need to know what the meaning was intended.

, , ...

+7

NLTK/wordnet, - . , , nltk.corpus.wordnet IS-A.

, , , , - > synset- > - > Similar_tos, (graph_tool ), , 2 , () ( , , , ). , - POS/.

+3

All Articles