/** Get member holonyms of <code>synset</code> */ public PointerTargetNodeList getMemberHolonyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.MEMBER_HOLONYM); }
/** Get substance holonyms of <code>synset</code> */ public PointerTargetNodeList getSubstanceHolonyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.SUBSTANCE_HOLONYM); }
/** Get substance meronyms of <code>synset</code> */ public PointerTargetNodeList getSubstanceMeronyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.SUBSTANCE_MERONYM); }
/** Find direct cause links of <code>synset</code> */ public PointerTargetNodeList getCauses(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.CAUSE); }
/** Get the immediate children of <code>synset</code> */ public PointerTargetNodeList getDirectHyponyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.HYPONYM); }
/** Get part holonyms of <code>synset</code> */ public PointerTargetNodeList getPartHolonyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.PART_HOLONYM); }
/** Find direct entailments of <code>synset</code> */ public PointerTargetNodeList getEntailments(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.ENTAILMENT); }
/** * Get the synonyms for <code>synset</code>. This is meant for adjectives. Synonyms to * nouns and verbs are just their hypernyms. */ public PointerTargetNodeList getSynonyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.SIMILAR_TO); }
/** Get the words that mean the opposite of <code>synset</code> */ public PointerTargetNodeList getAntonyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.ANTONYM); }
/** Get the attributes of <code>synset</code> */ public PointerTargetNodeList getAttributes(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.ATTRIBUTE); }
/** Find what words are related to <code>synset</code> */ public PointerTargetNodeList getAlsoSees(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.SEE_ALSO); }
/** Get part meronyms of <code>synset</code> */ public PointerTargetNodeList getPartMeronyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.PART_MERONYM); }
/** Find direct entailed bys of <code>synset</code> */ public PointerTargetNodeList getEntailedBy(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.ENTAILED_BY); }
/** Get the immediate parents of <code>synset</code> */ public PointerTargetNodeList getDirectHypernyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.HYPERNYM); }
/** Get member meronyms of <code>synset</code> */ public PointerTargetNodeList getMemberMeronyms(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.MEMBER_MERONYM); }
/** Find participle of links of <code>synset</code> */ public PointerTargetNodeList getParticipleOf(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.PARTICIPLE_OF); }
/** Find derrived links of <code>synset</code> */ public PointerTargetNodeList getDerived(Synset synset) throws JWNLException { return getPointerTargets(synset, PointerType.DERIVED); }
/** 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; }
/** Get the group that this verb belongs to. */ public PointerTargetNodeList getVerbGroup(Synset synset) throws JWNLException { // We need to go through all this hastle because // 1. a verb does not always have links to all the verbs in its group // 2. two verbs in the same group sometimes have reciprocal links, and we want // to make sure that each verb synset appears in the final list only once PointerTargetNodeList nodes = new PointerTargetNodeList(); nodes.add(new PointerTargetNode(synset, PointerType.VERB_GROUP)); int maxIndex = 0; int index = -1; do { index++; PointerTargetNode node = (PointerTargetNode) nodes.get(index); for (Iterator itr = getPointerTargets(node.getSynset(), PointerType.VERB_GROUP).iterator(); itr.hasNext();) { PointerTargetNode testNode = (PointerTargetNode) itr.next(); if (!nodes.contains(testNode)) { nodes.add(testNode); maxIndex++; } } } while (index < maxIndex); return nodes; }