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
synset
JWNLException
public PointerTargetTree getHypernymTree(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getHypernymTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
JWNLException
public PointerTargetNodeList getDirectHyponyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getHyponymTree(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getHyponymTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
JWNLException
public PointerTargetNodeList getCoordinateTerms(Synset synset) throws JWNLException
synset
's siblings (the hyponyms of its hypernyms)JWNLException
public PointerTargetNodeList getAntonyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getExtendedAntonyms(Synset synset) throws JWNLException
synset
and the immediate synonyms of those wordsJWNLException
public PointerTargetTree getExtendedAntonyms(Synset synset, int depth) throws JWNLException
synset
, and all synonyms of those antonyms to depth depth
.JWNLException
public PointerTargetTree getIndirectAntonyms(Synset synset) throws JWNLException
synset
.JWNLException
public PointerTargetTree getIndirectAntonyms(Synset synset, int depth) throws JWNLException
synset
to depth depth
.JWNLException
public PointerTargetNodeList getAttributes(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getAlsoSees(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getAlsoSeeTree(Synset synset, int depth) throws JWNLException
depth
.JWNLException
public PointerTargetNodeList getMeronyms(Synset synset) throws JWNLException
synset
.JWNLException
public PointerTargetNodeList getPartMeronyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getMemberMeronyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getSubstanceMeronyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getInteritedMeronyms(Synset synset) throws JWNLException
synset
and of all its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetTree getInheritedPartMeronyms(Synset synset) throws JWNLException
synset
and of all its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetTree getInheritedMemberMeronyms(Synset synset) throws JWNLException
JWNLException
public 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
.JWNLException
public PointerTargetTree getInheritedSubstanceMeronyms(Synset synset) throws JWNLException
synset
and of its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetNodeList getHolonyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getPartHolonyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getMemberHolonyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getSubstanceHolonyms(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getInheritedHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetTree getInheritedPartHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetTree getInheritedMemberHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetTree getInheritedSubstanceHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestorsJWNLException
public 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
.JWNLException
public PointerTargetNodeList getEntailments(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getEntailmentTree(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getEntailmentTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
JWNLException
public PointerTargetNodeList getEntailedBy(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getEntailedByTree(Synset synset) throws JWNLException
synset
.JWNLException
public PointerTargetTree getEntailedByTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.JWNLException
public PointerTargetNodeList getCauses(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetTree getCauseTree(Synset synset) throws JWNLException
synset
.JWNLException
public PointerTargetTree getCauseTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.JWNLException
public PointerTargetNodeList getVerbGroup(Synset synset) throws JWNLException
JWNLException
public PointerTargetNodeList getParticipleOf(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getDerived(Synset synset) throws JWNLException
synset
JWNLException
public PointerTargetNodeList getSynonyms(Synset synset) throws JWNLException
synset
. This is meant for adjectives. Synonyms to
nouns and verbs are just their hypernyms.JWNLException
public PointerTargetTree getSynonymTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.JWNLException
public 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.JWNLException
public 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.JWNLException
public 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 treeJWNLException
public 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.JWNLException
public 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.JWNLException
public 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 treeJWNLException
public 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 treeJWNLException
public 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 treeJWNLException
public PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType) throws JWNLException
JWNLException
public 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 listJWNLException
public 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 listJWNLException
public PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes) throws JWNLException
JWNLException
public 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 listJWNLException
public 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 listJWNLException
public 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 tree
allowRedundancies
- if true, duplicate items are allowed in the listJWNLException
public 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 tree
allowRedundancies
- if true, duplicate items are allowed in the listJWNLException
Copyright © 2016. All rights reserved.