I've been playing around with the NLTK WordNet package but was quite confused with the different methods for Synsets.
I understand the meaning of meronym / holonyms and hypernym / hyponyms.
But in NLTK WordNet, there are part_meronyms
and member_meronyms
, and instance_hypernyms
and hypernyms
.
It seems that part_meronyms
is returning the meronyms of a Synset and hypernyms
is the method to use. But what's the difference? There also seems to be no documentation on the NLTK website.
A meronym is some component of a larger whole, that can represent the whole semantically. Since this is a vast relationship, nltk divides the meronym categories into part-representing whole(
part_meronyms()
), and substance-representing whole(substance_meronyms()
).Hypernyms are not related to meronyms categorically. A given Synset's hypernym list contains all Synsets one depth level lower than the target Synset in the word tree.
Meronym example taken from here: