private void demonstrateListOperation(IndexWord word) throws JWNLException { // Get all of the hypernyms (parents) of the first sense of <var>word</var> PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1)); System.out.println("Direct hypernyms of \"" + word.getLemma() + "\":"); hypernyms.print(); }
private void demonstrateListOperation(IndexWord word) throws JWNLException { // Get all of the hypernyms (parents) of the first sense of <var>word</var> PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1)); System.out.println("Direct hypernyms of \"" + word.getLemma() + "\":"); hypernyms.print(); }
/** Get <code>synset</code>'s siblings (the hyponyms of its hypernyms) */ public PointerTargetNodeList getCoordinateTerms(Synset synset) throws JWNLException { PointerTargetNodeList list = new PointerTargetNodeList(); for (Iterator itr = getDirectHypernyms(synset).iterator(); itr.hasNext();) { list.addAll(getPointerTargets(((PointerTargetNode) itr.next()).getSynset(), PointerType.HYPONYM)); } return list; }
private void demonstrateListOperation(IndexWord word) throws JWNLException { // Get all of the hypernyms (parents) of the first sense of <var>word</var> PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1)); System.out.println("Direct hypernyms of \"" + word.getLemma() + "\":"); hypernyms.print(); }
private void demonstrateListOperation(IndexWord word) throws JWNLException { // Get all of the hypernyms (parents) of the first sense of <var>word</var> PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1)); System.out.println("Direct hypernyms of \"" + word.getLemma() + "\":"); hypernyms.print(); }
PointerTargetNodeList relatedListHyponyms = null; try { relatedListHypernyms = PointerUtils.getInstance().getDirectHypernyms(sense);
result.add(w.getLemma()); PointerTargetNodeList target = PointerUtils.getInstance().getDirectHypernyms(sense); while (target != null && !target.isEmpty()) { for (Object aTarget : target) {
switch(relation){ case hype: nodeList = pUtils.getDirectHypernyms(sense); break; case hypo: