|
path_similarity(synset1,
synset2,
verbose=False)
Path Distance Similarity: Return a score denoting how similar two
word senses are, based on the shortest path that connects the senses
in the is-a (hypernym/hypnoym) taxonomy. |
source code
|
|
|
lch_similarity(synset1,
synset2,
verbose=False)
Leacock Chodorow Similarity: Return a score denoting how similar two
word senses are, based on the shortest path that connects the senses
(as above) and the maximum depth of the taxonomy in which the senses
occur. |
source code
|
|
|
wup_similarity(synset1,
synset2,
verbose=False)
Wu-Palmer Similarity: Return a score denoting how similar two word
senses are, based on the depth of the two senses in the taxonomy and
that of their Least Common Subsumer (most specific ancestor node). |
source code
|
|
|
res_similarity(synset1,
synset2,
ic,
verbose=False)
Resnik Similarity: Return a score denoting how similar two word
senses are, based on the Information Content (IC) of the Least Common
Subsumer (most specific ancestor node). |
source code
|
|
|
jcn_similarity(synset1,
synset2,
ic,
verbose=False)
Jiang-Conrath Similarity: Return a score denoting how similar two
word senses are, based on the Information Content (IC) of the Least
Common Subsumer (most specific ancestor node) and that of the two
input Synsets. |
source code
|
|
|
lin_similarity(synset1,
synset2,
ic,
verbose=False)
Lin Similarity: Return a score denoting how similar two word senses
are, based on the Information Content (IC) of the Least Common
Subsumer (most specific ancestor node) and that of the two input
Synsets. |
source code
|
|
|
|
|
_lcs_by_depth(synset1,
synset2,
verbose=False)
Finds the least common subsumer of two synsets in a Wordnet taxonomy,
where the least common subsumer is defined as the ancestor node
common to both input synsets whose shortest path to the root node is
the longest. |
source code
|
|
|
_lcs_ic(synset1,
synset2,
ic,
verbose=False)
Get the information content of the least common subsumer that has the
highest information content value. |
source code
|
|
|
|
|
load_ic(icfile)
Load an information content file from the wordnet_ic corpus and
return a dictionary. |
source code
|
|
|
|