NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

wordnet.meronym()

Syntax

holonym(query)

Description

Returns the collection of queries grouped together - that of which query is a member. The returned value is a list of elements that are by themselves lists of related synonyms. This is the semantical inverse of the holonym() command.

Example

wordnet = ximport("wordnet")
print wordnet.meronym("tree")
>>>[['forest', 'wood', 'woods']]