public final class PointerUtils extends Object
Relationship class, these relationships will be referred to as links.| Modifier and Type | Field and Description |
|---|---|
static int |
INFINITY
Representation of infinite depth.
|
| Modifier and Type | Method and Description |
|---|---|
PointerTargetNodeList |
getAlsoSees(Synset synset)
Find what words are related to
synset |
PointerTargetTree |
getAlsoSeeTree(Synset synset,
int depth)
Find all See Also relations to depth
depth. |
PointerTargetNodeList |
getAntonyms(Synset synset)
Get the words that mean the opposite of
synset |
PointerTargetNodeList |
getAttributes(Synset synset)
Get the attributes of
synset |
PointerTargetNodeList |
getCauses(Synset synset)
Find direct cause links of
synset |
PointerTargetTree |
getCauseTree(Synset synset)
Find all cause links for
synset. |
PointerTargetTree |
getCauseTree(Synset synset,
int depth)
Find all cause links for
synset to depth depth. |
PointerTargetNodeList |
getCoordinateTerms(Synset synset)
Get
synset's siblings (the hyponyms of its hypernyms) |
PointerTargetNodeList |
getDerived(Synset synset)
Find derrived links of
synset |
PointerTargetNodeList |
getDirectHypernyms(Synset synset)
Get the immediate parents of
synset |
PointerTargetNodeList |
getDirectHyponyms(Synset synset)
Get the immediate children of
synset |
PointerTargetNodeList |
getEntailedBy(Synset synset)
Find direct entailed bys of
synset |
PointerTargetTree |
getEntailedByTree(Synset synset)
Find all entailed bys of
synset. |
PointerTargetTree |
getEntailedByTree(Synset synset,
int depth)
Find all entailed bys of
synset to depth depth. |
PointerTargetNodeList |
getEntailments(Synset synset)
Find direct entailments of
synset |
PointerTargetTree |
getEntailmentTree(Synset synset)
Find all entailments for
synset |
PointerTargetTree |
getEntailmentTree(Synset synset,
int depth)
Find all entailments for
synset to depth depth |
PointerTargetTree |
getExtendedAntonyms(Synset synset)
Get the words that mean the opposite of
synset and the immediate synonyms of those words |
PointerTargetTree |
getExtendedAntonyms(Synset synset,
int depth)
Find all antonyms of
synset, and all synonyms of those antonyms to depth depth. |
PointerTargetNodeList |
getHolonyms(Synset synset)
Get holonyms of
synset |
PointerTargetTree |
getHypernymTree(Synset synset)
Get all of the ancestors of
synset |
PointerTargetTree |
getHypernymTree(Synset synset,
int depth)
Get all of the ancestors of
synset to depth depth |
PointerTargetTree |
getHyponymTree(Synset synset)
Get all of the children of
synset |
PointerTargetTree |
getHyponymTree(Synset synset,
int depth)
Get all of the children of
synset to depth depth |
PointerTargetTree |
getIndirectAntonyms(Synset synset)
Get the immediate antonyms of all words that mean the same as
synset. |
PointerTargetTree |
getIndirectAntonyms(Synset synset,
int depth)
Get the antonyms of all words that mean the same as
synset to depth depth. |
PointerTargetTree |
getInheritedHolonyms(Synset synset)
Get holonyms of
synset and of all its ancestors |
PointerTargetTree |
getInheritedHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get holonyms of each synset, to depth
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth. |
PointerTargetTree |
getInheritedMemberHolonyms(Synset synset)
Get member holonyms of
synset and of all its ancestors |
PointerTargetTree |
getInheritedMemberHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get member holonyms of each synset, to depth
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth. |
PointerTargetTree |
getInheritedMemberMeronyms(Synset synset)
Get member meronyms of synset and of its ancestors
|
PointerTargetTree |
getInheritedMemberMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get member meronyms of each synset, to depth
pointerDepth, starting at
synset and going for all of synset's ancestors to depth
ancestorDepth. |
PointerTargetTree |
getInheritedMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get meronyms of each synset, to depth
pointerDepth starting at
synset and going for all of synset's ancestors to depth
ancestorDepth. |
PointerTargetTree |
getInheritedPartHolonyms(Synset synset)
Get part holonyms of
synset and of all its ancestors |
PointerTargetTree |
getInheritedPartHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get part holonyms of each synset, to depth
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth. |
PointerTargetTree |
getInheritedPartMeronyms(Synset synset)
Get part meronyms of
synset and of all its ancestors |
PointerTargetTree |
getInheritedPartMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get part meronyms of each synset, to depth
pointerDepth, starting at
synset and going for all of synset's ancestors to depth
ancestorDepth. |
PointerTargetTree |
getInheritedSubstanceHolonyms(Synset synset)
Get substance holonyms of
synset and of all its ancestors |
PointerTargetTree |
getInheritedSubstanceHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get substance holonyms of each synset, to depth
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth. |
PointerTargetTree |
getInheritedSubstanceMeronyms(Synset synset)
Get substance meronyms of
synset and of its ancestors |
PointerTargetTree |
getInheritedSubstanceMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Get substance meronyms of each synset, to depth
pointerDepth, starting at
synset and going for all of synset's ancestors to depth
ancestorDepth. |
static PointerUtils |
getInstance() |
PointerTargetTree |
getInteritedMeronyms(Synset synset)
Get meronyms of
synset and of all its ancestors |
PointerTargetNodeList |
getMemberHolonyms(Synset synset)
Get member holonyms of
synset |
PointerTargetNodeList |
getMemberMeronyms(Synset synset)
Get member meronyms of
synset |
PointerTargetNodeList |
getMeronyms(Synset synset)
Get meronyms of
synset. |
PointerTargetNodeList |
getPartHolonyms(Synset synset)
Get part holonyms of
synset |
PointerTargetNodeList |
getParticipleOf(Synset synset)
Find participle of links of
synset |
PointerTargetNodeList |
getPartMeronyms(Synset synset)
Get part meronyms of
synset |
PointerTargetNodeList |
getSubstanceHolonyms(Synset synset)
Get substance holonyms of
synset |
PointerTargetNodeList |
getSubstanceMeronyms(Synset synset)
Get substance meronyms of
synset |
PointerTargetNodeList |
getSynonyms(Synset synset)
Get the synonyms for
synset. |
PointerTargetTree |
getSynonymTree(Synset synset,
int depth)
Get all the synonyms of
synset to depth depth. |
PointerTargetNodeList |
getVerbGroup(Synset synset)
Get the group that this verb belongs to.
|
PointerTargetTree |
makeInheritedTree(PointerTargetTree tree,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Turn an existing tree into an inheritance tree.
|
PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType searchType)
Create a hypernym tree starting at synset, and add to each node a nested list pointer targets of type
searchType, starting at the node's pointer target.
|
PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType[] searchTypes)
Create a hypernym tree starting at synset, and add to each node a nested list pointer targets of
the types specified in searchTypes, starting at the node's pointer target.
|
PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth)
Create a hypernym tree starting at synset, and add to each node a nested list pointer targets of
the types specified in searchTypes, starting at the node's pointer target.
|
PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Create a hypernym tree starting at synset, and add to each node a nested list pointer targets of
the types specified in searchTypes, starting at the node's pointer target.
|
PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType searchType,
PointerType labelType,
int pointerDepth,
int ancestorDepth)
Create a hypernym tree starting at synset, and add to each node a nested list pointer targets of type
searchType, starting at the node's pointer target.
|
PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType searchType,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Create a hypernym tree starting at synset, and add to each node a nested list pointer targets of type
searchType, starting at the node's pointer target.
|
PointerTargetTreeNodeList |
makeInheritedTreeList(PointerTargetTreeNodeList list,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Turn an existing tree list into an inheritance tree list.
|
PointerTargetTreeNodeList |
makePointerTargetTreeList(PointerTargetNodeList list,
PointerType[] searchTypes,
PointerType labelType,
int depth,
boolean allowRedundancies)
Make a nested list of pointer targets to depth depth, starting at each
synset in
list. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(PointerTargetNodeList list,
PointerType searchType,
PointerType labelType,
int depth,
boolean allowRedundancies)
Make a nested list of pointer targets to depth depth, starting at each
synset in
list. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset set,
PointerType searchType)
Make a nested list of pointer targets to the default depth, starting at
synset. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset set,
PointerType[] searchTypes)
Make a nested list of pointer targets to the default depth, starting at
synset. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset set,
PointerType[] searchTypes,
int depth)
Make a nested list of pointer targets to depth depth, starting at
synset. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType[] searchTypes,
PointerType labelType,
int depth,
boolean allowRedundancies)
Make a nested list of pointer targets to depth depth, starting at
synset. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset set,
PointerType searchType,
int depth)
Make a nested list of pointer targets to depth depth, starting at
synset. |
PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset set,
PointerType searchType,
PointerType labelType,
int depth,
boolean allowRedundancies)
Make a nested list of pointer targets to depth depth, starting at
synset. |
public static final int INFINITY
public static PointerUtils getInstance()
public PointerTargetNodeList getDirectHypernyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getHypernymTree(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getHypernymTree(Synset synset, int depth) throws JWNLException
synset to depth depthJWNLExceptionpublic PointerTargetNodeList getDirectHyponyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getHyponymTree(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getHyponymTree(Synset synset, int depth) throws JWNLException
synset to depth depthJWNLExceptionpublic PointerTargetNodeList getCoordinateTerms(Synset synset) throws JWNLException
synset's siblings (the hyponyms of its hypernyms)JWNLExceptionpublic PointerTargetNodeList getAntonyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getExtendedAntonyms(Synset synset) throws JWNLException
synset and the immediate synonyms of those wordsJWNLExceptionpublic PointerTargetTree getExtendedAntonyms(Synset synset, int depth) throws JWNLException
synset, and all synonyms of those antonyms to depth depth.JWNLExceptionpublic PointerTargetTree getIndirectAntonyms(Synset synset) throws JWNLException
synset.JWNLExceptionpublic PointerTargetTree getIndirectAntonyms(Synset synset, int depth) throws JWNLException
synset to depth depth.JWNLExceptionpublic PointerTargetNodeList getAttributes(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getAlsoSees(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getAlsoSeeTree(Synset synset, int depth) throws JWNLException
depth.JWNLExceptionpublic PointerTargetNodeList getMeronyms(Synset synset) throws JWNLException
synset.JWNLExceptionpublic PointerTargetNodeList getPartMeronyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getMemberMeronyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getSubstanceMeronyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getInteritedMeronyms(Synset synset) throws JWNLException
synset and of all its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedMeronyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth starting at
synset and going for all of synset's ancestors to depth
ancestorDepth.JWNLExceptionpublic PointerTargetTree getInheritedPartMeronyms(Synset synset) throws JWNLException
synset and of all its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedPartMeronyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at
synset and going for all of synset's ancestors to depth
ancestorDepth.JWNLExceptionpublic PointerTargetTree getInheritedMemberMeronyms(Synset synset) throws JWNLException
JWNLExceptionpublic PointerTargetTree getInheritedMemberMeronyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at
synset and going for all of synset's ancestors to depth
ancestorDepth.JWNLExceptionpublic PointerTargetTree getInheritedSubstanceMeronyms(Synset synset) throws JWNLException
synset and of its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedSubstanceMeronyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at
synset and going for all of synset's ancestors to depth
ancestorDepth.JWNLExceptionpublic PointerTargetNodeList getHolonyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getPartHolonyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getMemberHolonyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getSubstanceHolonyms(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getInheritedHolonyms(Synset synset) throws JWNLException
synset and of all its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedHolonyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth.JWNLExceptionpublic PointerTargetTree getInheritedPartHolonyms(Synset synset) throws JWNLException
synset and of all its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedPartHolonyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth.JWNLExceptionpublic PointerTargetTree getInheritedMemberHolonyms(Synset synset) throws JWNLException
synset and of all its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedMemberHolonyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth.JWNLExceptionpublic PointerTargetTree getInheritedSubstanceHolonyms(Synset synset) throws JWNLException
synset and of all its ancestorsJWNLExceptionpublic PointerTargetTree getInheritedSubstanceHolonyms(Synset synset, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth, starting at synset
and going for all of synset's ancestors to depth ancestorDepth.JWNLExceptionpublic PointerTargetNodeList getEntailments(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getEntailmentTree(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getEntailmentTree(Synset synset, int depth) throws JWNLException
synset to depth depthJWNLExceptionpublic PointerTargetNodeList getEntailedBy(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getEntailedByTree(Synset synset) throws JWNLException
synset.JWNLExceptionpublic PointerTargetTree getEntailedByTree(Synset synset, int depth) throws JWNLException
synset to depth depth.JWNLExceptionpublic PointerTargetNodeList getCauses(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetTree getCauseTree(Synset synset) throws JWNLException
synset.JWNLExceptionpublic PointerTargetTree getCauseTree(Synset synset, int depth) throws JWNLException
synset to depth depth.JWNLExceptionpublic PointerTargetNodeList getVerbGroup(Synset synset) throws JWNLException
JWNLExceptionpublic PointerTargetNodeList getParticipleOf(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getDerived(Synset synset) throws JWNLException
synsetJWNLExceptionpublic PointerTargetNodeList getSynonyms(Synset synset) throws JWNLException
synset. This is meant for adjectives. Synonyms to
nouns and verbs are just their hypernyms.JWNLExceptionpublic PointerTargetTree getSynonymTree(Synset synset, int depth) throws JWNLException
synset to depth depth.JWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(Synset set, PointerType searchType) throws JWNLException
synset. Each
level of the list is related to the previous level by a pointer of type searchType.JWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(Synset set, PointerType searchType, int depth) throws JWNLException
synset. Each
level of the list is related to the previous level by a pointer of type searchType.JWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(Synset set, PointerType searchType, PointerType labelType, int depth, boolean allowRedundancies) throws JWNLException
synset. Each
level of the list is related to the previous level by a pointer of type searchType.labelType - the type used to label each pointer target in the treeallowRedundancies - if true, duplicate items will be included in the treeJWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(Synset set, PointerType[] searchTypes) throws JWNLException
synset. Each
level of the list is related to the previous level by one of the pointer types specified by
searchTypes.JWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(Synset set, PointerType[] searchTypes, int depth) throws JWNLException
synset. Each
level of the list is related to the previous level by one of the pointer types specified by
searchTypes.JWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(Synset synset, PointerType[] searchTypes, PointerType labelType, int depth, boolean allowRedundancies) throws JWNLException
synset. Each
level of the list is related to the previous level by one of the pointer types specified by
searchTypes.labelType - the type used to label each pointer target in the treeallowRedundancies - if true, duplicate items will be included in the treeJWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(PointerTargetNodeList list, PointerType searchType, PointerType labelType, int depth, boolean allowRedundancies) throws JWNLException
synset in
list. Each level of the list is related to the previous level by a pointer of type
searchType.labelType - the type used to label each pointer target in the treeallowRedundancies - if true, duplicate items will be included in the treeJWNLExceptionpublic PointerTargetTreeNodeList makePointerTargetTreeList(PointerTargetNodeList list, PointerType[] searchTypes, PointerType labelType, int depth, boolean allowRedundancies) throws JWNLException
synset in
list. Each level of the list is related to the previous level by one of the pointer types specified
by searchTypes.labelType - the type used to label each pointer target in the treeallowRedundancies - if true, duplicate items will be included in the treeJWNLExceptionpublic PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType) throws JWNLException
JWNLExceptionpublic PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType, PointerType labelType, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth - the depth to which to search for each pointer listancestorDepth - the depth to which to go to in the hypernym listJWNLExceptionpublic PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException
pointerDepth - the depth to which to search for each pointer listancestorDepth - the depth to which to go to in the hypernym listallowRedundancies - if true, duplicate items are allowed in the listJWNLExceptionpublic PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes) throws JWNLException
JWNLExceptionpublic PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth) throws JWNLException
pointerDepth - the depth to which to search for each pointer listancestorDepth - the depth to which to go to in the hypernym listJWNLExceptionpublic PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException
pointerDepth - the depth to which to search for each pointer listancestorDepth - the depth to which to go to in the hypernym listallowRedundancies - if true, duplicate items are allowed in the listJWNLExceptionpublic PointerTargetTree makeInheritedTree(PointerTargetTree tree, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException
tree - the tree to convertsearchTypes - the pointer types to include in the pointer listslabelType - the PointerType with which to label each pointerpointerDepth - the depth to which to search for each pointer listancestorDepth - the depth to which to go to in treeallowRedundancies - if true, duplicate items are allowed in the listJWNLExceptionpublic PointerTargetTreeNodeList makeInheritedTreeList(PointerTargetTreeNodeList list, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException
list - the tree list to convertsearchTypes - the pointer types to include in the pointer listslabelType - the PointerType with which to label each pointerpointerDepth - the depth to which to search for each pointer listancestorDepth - the depth to which to go to in treeallowRedundancies - if true, duplicate items are allowed in the listJWNLExceptionCopyright © 2019. All rights reserved.