清单5是接受一个单词然后用Python集合返回下义词链的客户机代码。
Indeed, the WordNet model says that 'wisteria' is a hyponym of 'vine,' and 'vine' is a hyponym of 'traceophyte.'实际上,WordNet模型表明“wisteria”是“vine”的下位词,“vine”是“traceophyte”的下位词。
I'm actually going to use a subset of the WordNet model here, containing only those nouns beneath 'plant life' in the hyponym hierarchy.这里我实际将使用WordNet模型的子集,仅包含下位词层次结构中“plant life”之下的那些名词。