Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Getting all Hypernyms of a word

Help
rj365
2005-11-05
2013-04-29
  • rj365
    rj365
    2005-11-05

    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.

    Code:

    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.

    Thanks!