Listing 5 is client code that takes a word and returns the hyponym chain as a Python set.
清单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模型的子集,仅包含下位词层次结构中“plantlife”之下的那些名词。
Intuitively, you know that "wisteria" is therefore a hyponym of "traceophyte," because you know that the "hyponym of" relationship is transitive.
直观地,您知道“wisteria”因此是“traceophyte”的下位词,因为您知道“hyponym of”关系是可传递的。
Intuitively, you know that "wisteria" is therefore a hyponym of "traceophyte," because you know that the "hyponym of" relationship is transitive.
直观地,您知道“wisteria”因此是“traceophyte”的下位词,因为您知道“hyponym of”关系是可传递的。
应用推荐