例如,采用两种感觉Synset('mile.n.03')
,Synset('support.v.09)
当我计算这两种感觉之间基于路径的相似性时,如下所示
from nltk.corpus import wordnet as wn
mile = wn.synset('mile.n.03')
support = wn.synset('support.v.09')
support2 = wn.synset('documentation.n.03')
wn.path_similarity(mile,support) #no output
wn.path_similarity(mile,support2) #get an output 0.08333
知道为什么会这样吗?还是我犯了一些根本性的错误?