/** Get all of the ancestors of <code>synset</code> */ public PointerTargetTree getHypernymTree(Synset synset) throws JWNLException { return getHypernymTree(synset, INFINITY); }
/** * Create a hypernym tree starting at <var>synset</var>, and add to each node a nested list pointer targets of * the types specified in <var>searchTypes</var>, starting at the node's pointer target. * @param pointerDepth the depth to which to search for each pointer list * @param ancestorDepth the depth to which to go to in the hypernym list * @param allowRedundancies if true, duplicate items are allowed in the list */ public PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException { PointerTargetTree hypernyms = getHypernymTree(synset, INFINITY); return makeInheritedTree(hypernyms, searchTypes, labelType, pointerDepth, ancestorDepth, allowRedundancies); }