I want to obtain the hypernyms of a word.
Example: For Dog, it will be
canine, placental, mammal, vertebrate, chordate, animal, organism, living thing, object, entity.
PointerTargetTree hypernymTree = PointerUtils.getInstance().getHypernymTree(word.getSense(1));
PointerTargetNodeList ptnl = hypernymTree.getRootNode().getChildTreeList();
I cannot understand why the size of ptnl is 1. Iterating this gives canine but how to get the rest of the tree is the question.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.