public abstract class PointerUtils
extends java.lang.Object
Relationship
class, these relationships will be referred to as links.Modifier and Type | Field and Description |
---|---|
static int |
INFINITY
Representation of infinite depth.
|
Constructor and Description |
---|
PointerUtils() |
Modifier and Type | Method and Description |
---|---|
static PointerTargetNodeList |
getAlsoSees(Synset synset)
Finds what words are related to
synset . |
static PointerTargetTree |
getAlsoSeeTree(Synset synset,
int depth)
Finds all See Also relations to depth
depth . |
static PointerTargetNodeList |
getAntonyms(Synset synset)
Returns the words that mean the opposite of
synset . |
static PointerTargetNodeList |
getAttributes(Synset synset)
Returns the attributes of
synset . |
static PointerTargetNodeList |
getCauses(Synset synset)
Finds direct cause links of
synset . |
static PointerTargetTree |
getCauseTree(Synset synset)
Finds all cause links for
synset . |
static PointerTargetTree |
getCauseTree(Synset synset,
int depth)
Finds all cause links for
synset to depth depth . |
static PointerTargetNodeList |
getCoordinateTerms(Synset synset)
Returns
synset 's siblings (the hyponyms of its hypernyms). |
static PointerTargetNodeList |
getDirectHypernyms(Synset synset)
Returns the immediate parents of
synset . |
static PointerTargetNodeList |
getDirectHyponyms(Synset synset)
Returns the immediate children of
synset . |
static PointerTargetNodeList |
getEntailments(Synset synset)
Finds direct entailments of
synset . |
static PointerTargetTree |
getEntailmentTree(Synset synset)
Finds all entailments for
synset . |
static PointerTargetTree |
getEntailmentTree(Synset synset,
int depth)
Finds all entailments for
synset to depth depth . |
static PointerTargetTree |
getExtendedAntonyms(Synset synset)
Returns the words that mean the opposite of
synset and the immediate synonyms of those words. |
static PointerTargetTree |
getExtendedAntonyms(Synset synset,
int depth)
Finds all antonyms of
synset , and all synonyms of those antonyms to depth depth . |
static PointerTargetNodeList |
getHolonyms(Synset synset)
Returns holonyms of
synset . |
static PointerTargetTree |
getHypernymTree(Synset synset)
Returns all of the ancestors of
synset . |
static PointerTargetTree |
getHypernymTree(Synset synset,
int depth)
Returns all of the ancestors of
synset to depth depth . |
static PointerTargetTree |
getHyponymTree(Synset synset)
Returns all of the children of
synset . |
static PointerTargetTree |
getHyponymTree(Synset synset,
int depth)
Returns all of the children of
synset to depth depth . |
static PointerTargetTree |
getIndirectAntonyms(Synset synset)
Returns the immediate antonyms of all words that mean the same as
synset . |
static PointerTargetTree |
getIndirectAntonyms(Synset synset,
int depth)
Returns the antonyms of all words that mean the same as
synset to depth depth . |
static PointerTargetTree |
getInheritedHolonyms(Synset synset)
Returns holonyms of
synset and of all its ancestors. |
static PointerTargetTree |
getInheritedHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns holonyms of each synset, to depth
pointerDepth , starting at synset
and going for all of synset 's ancestors to depth ancestorDepth . |
static PointerTargetTree |
getInheritedMemberHolonyms(Synset synset)
Returns member holonyms of
synset and of all its ancestors. |
static PointerTargetTree |
getInheritedMemberHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns member holonyms of each synset, to depth
pointerDepth , starting at synset
and going for all of synset 's ancestors to depth ancestorDepth . |
static PointerTargetTree |
getInheritedMemberMeronyms(Synset synset)
Returns member meronyms of synset and of its ancestors.
|
static PointerTargetTree |
getInheritedMemberMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns member meronyms of each synset, to depth
pointerDepth , starting at
synset and going for all of synset 's ancestors to depth
ancestorDepth . |
static PointerTargetTree |
getInheritedMeronyms(Synset synset)
Returns meronyms of
synset and of all its ancestors. |
static PointerTargetTree |
getInheritedMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns meronyms of each synset, to depth
pointerDepth starting at
synset and going for all of synset 's ancestors to depth
ancestorDepth . |
static PointerTargetTree |
getInheritedPartHolonyms(Synset synset)
Returns part holonyms of
synset and of all its ancestors. |
static PointerTargetTree |
getInheritedPartHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns part holonyms of each synset, to depth
pointerDepth , starting at synset
and going for all of synset 's ancestors to depth ancestorDepth . |
static PointerTargetTree |
getInheritedPartMeronyms(Synset synset)
Returns part meronyms of
synset and of all its ancestors. |
static PointerTargetTree |
getInheritedPartMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns part meronyms of each synset, to depth
pointerDepth , starting at
synset and going for all of synset 's ancestors to depth
ancestorDepth . |
static PointerTargetTree |
getInheritedSubstanceHolonyms(Synset synset)
Returns substance holonyms of
synset and of all its ancestors. |
static PointerTargetTree |
getInheritedSubstanceHolonyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns substance holonyms of each synset, to depth
pointerDepth , starting at synset
and going for all of synset 's ancestors to depth ancestorDepth . |
static PointerTargetTree |
getInheritedSubstanceMeronyms(Synset synset)
Returns substance meronyms of
synset and of its ancestors. |
static PointerTargetTree |
getInheritedSubstanceMeronyms(Synset synset,
int pointerDepth,
int ancestorDepth)
Returns substance meronyms of each synset, to depth
pointerDepth , starting at
synset and going for all of synset 's ancestors to depth
ancestorDepth . |
static PointerTargetNodeList |
getMemberHolonyms(Synset synset)
Returns member holonyms of
synset . |
static PointerTargetNodeList |
getMemberMeronyms(Synset synset)
Returns member meronyms of
synset . |
static PointerTargetNodeList |
getMeronyms(Synset synset)
Returns meronyms of
synset . |
static PointerTargetNodeList |
getPartHolonyms(Synset synset)
Returns part holonyms of
synset . |
static PointerTargetNodeList |
getParticipleOf(Synset synset)
Finds participle of links of
synset . |
static PointerTargetNodeList |
getPartMeronyms(Synset synset)
Returns part meronyms of
synset . |
static PointerTargetNodeList |
getPertainyms(Synset synset)
Returns the pertainyms for synset.
|
static PointerTargetNodeList |
getSubstanceHolonyms(Synset synset)
Returns substance holonyms of
synset . |
static PointerTargetNodeList |
getSubstanceMeronyms(Synset synset)
Returns substance meronyms of
synset . |
static PointerTargetNodeList |
getSynonyms(Synset synset)
Returns the synonyms for synset.
|
static PointerTargetTree |
getSynonymTree(Synset synset,
int depth)
Returns all the synonyms of
synset to depth depth . |
static PointerTargetNodeList |
getVerbGroup(Synset synset)
Returns the group that this verb belongs to.
|
static PointerTargetTree |
makeInheritedTree(PointerTargetTree tree,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Turn an existing tree into an inheritance tree.
|
static PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType searchType)
Creates 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.
|
static PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType[] searchTypes)
Creates 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.
|
static PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth)
Creates 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.
|
static PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Creates 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.
|
static PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType searchType,
PointerType labelType,
int pointerDepth,
int ancestorDepth)
Creates 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.
|
static PointerTargetTree |
makeInheritedTree(Synset synset,
PointerType searchType,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Creates 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.
|
static PointerTargetTreeNodeList |
makeInheritedTreeList(PointerTargetTreeNodeList list,
PointerType[] searchTypes,
PointerType labelType,
int pointerDepth,
int ancestorDepth,
boolean allowRedundancies)
Turn an existing tree list into an inheritance tree list.
|
static PointerTargetTreeNodeList |
makePointerTargetTreeList(PointerTargetNodeList list,
PointerType[] searchTypes,
PointerType labelType,
int depth,
boolean allowRedundancies)
Makes a nested list of pointer targets to depth depth, starting at each
synset in
list. |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(PointerTargetNodeList list,
PointerType searchType,
PointerType labelType,
int depth,
boolean allowRedundancies)
Makes a nested list of pointer targets to depth depth, starting at each
synset in
list. |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType searchType)
Makes a nested list of pointer targets to the default depth, starting at
synset . |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType[] searchTypes)
Makes a nested list of pointer targets to the default depth, starting at
synset . |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType[] searchTypes,
int depth)
Makes a nested list of pointer targets to depth depth, starting at
synset . |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType[] searchTypes,
PointerType labelType,
int depth,
boolean allowRedundancies)
Makes a nested list of pointer targets to depth depth, starting at
synset . |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType searchType,
int depth)
Makes a nested list of pointer targets to depth depth, starting at
synset . |
static PointerTargetTreeNodeList |
makePointerTargetTreeList(Synset synset,
PointerType searchType,
PointerType labelType,
int depth,
boolean allowRedundancies)
Makes a nested list of pointer targets to depth depth, starting at
synset . |
public static final int INFINITY
public static PointerTargetNodeList getDirectHypernyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getHypernymTree(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getHypernymTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.synset
- synsetdepth
- depthsynset
to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getDirectHyponyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getHyponymTree(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getHyponymTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.synset
- synsetdepth
- depthsynset
to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getCoordinateTerms(Synset synset) throws JWNLException
synset
's siblings (the hyponyms of its hypernyms).synset
- synsetsynset
's siblings (the hyponyms of its hypernyms)JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getAntonyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getExtendedAntonyms(Synset synset) throws JWNLException
synset
and the immediate synonyms of those words.synset
- synsetsynset
and the immediate synonyms of those wordsJWNLException
- JWNLExceptionpublic static PointerTargetTree getExtendedAntonyms(Synset synset, int depth) throws JWNLException
synset
, and all synonyms of those antonyms to depth depth
.synset
- synsetdepth
- depthsynset
, and all synonyms of those antonyms to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetTree getIndirectAntonyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getIndirectAntonyms(Synset synset, int depth) throws JWNLException
synset
to depth depth
.synset
- synsetdepth
- depthsynset
to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getAttributes(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getAlsoSees(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getAlsoSeeTree(Synset synset, int depth) throws JWNLException
depth
.synset
- synsetdepth
- depthdepth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getMeronyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getPartMeronyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getMemberMeronyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getSubstanceMeronyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedMeronyms(Synset synset) throws JWNLException
synset
and of all its ancestors.synset
- synsetsynset
and of all its ancestorsJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetancestorDepth
- ancestor depthpointerDepth
- pointer depthJWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedPartMeronyms(Synset synset) throws JWNLException
synset
and of all its ancestors.synset
- synsetsynset
and of all its ancestorsJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetancestorDepth
- ancestor depthpointerDepth
- pointer depthJWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedMemberMeronyms(Synset synset) throws JWNLException
synset
- synsetJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetancestorDepth
- ancestor depthpointerDepth
- pointer depthJWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedSubstanceMeronyms(Synset synset) throws JWNLException
synset
and of its ancestors.synset
- synsetsynset
and of its ancestorsJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetancestorDepth
- ancestor depthpointerDepth
- pointer depthJWNLException
- JWNLExceptionpublic static PointerTargetNodeList getHolonyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getPartHolonyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getMemberHolonyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getSubstanceHolonyms(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestors.synset
- synsetJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetancestorDepth
- ancestor depthpointerDepth
- pointer depthJWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedPartHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestors.synset
- synsetsynset
and of all its ancestorsJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetpointerDepth
- pointer depthancestorDepth
- ancestor depthJWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedMemberHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestors.synset
- synsetsynset
and of all its ancestorsJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetpointerDepth
- pointer depthancestorDepth
- ancestor depthJWNLException
- JWNLExceptionpublic static PointerTargetTree getInheritedSubstanceHolonyms(Synset synset) throws JWNLException
synset
and of all its ancestors.synset
- synsetsynset
and of all its ancestorsJWNLException
- JWNLExceptionpublic static 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
.synset
- synsetpointerDepth
- pointer depthancestorDepth
- ancestor depthJWNLException
- JWNLExceptionpublic static PointerTargetNodeList getEntailments(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getEntailmentTree(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getEntailmentTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.synset
- synsetdepth
- depthsynset
to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getCauses(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getCauseTree(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTree getCauseTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.synset
- synsetdepth
- depthsynset
to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getVerbGroup(Synset synset) throws JWNLException
synset
- synsetJWNLException
- JWNLExceptionpublic static PointerTargetNodeList getParticipleOf(Synset synset) throws JWNLException
synset
.synset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getSynonyms(Synset synset) throws JWNLException
synset
- synsetJWNLException
- JWNLExceptionpublic static PointerTargetTree getSynonymTree(Synset synset, int depth) throws JWNLException
synset
to depth depth
.synset
- synsetdepth
- depthsynset
to depth depth
JWNLException
- JWNLExceptionpublic static PointerTargetNodeList getPertainyms(Synset synset) throws JWNLException
synset
- synsetJWNLException
- JWNLExceptionpublic static PointerTargetTreeNodeList makePointerTargetTreeList(Synset synset, PointerType searchType) throws JWNLException
synset
. Each
level of the list is related to the previous level by a pointer of type searchType.synset
- synsetsearchType
- the pointer type to include in the pointer listssynset
JWNLException
- JWNLExceptionpublic static PointerTargetTreeNodeList makePointerTargetTreeList(Synset synset, PointerType searchType, int depth) throws JWNLException
synset
. Each
level of the list is related to the previous level by a pointer of type searchType.synset
- synsetsearchType
- the pointer type to include in the pointer listsdepth
- depthsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTreeNodeList makePointerTargetTreeList(Synset synset, 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.searchType
- the pointer type to include in the pointer listslabelType
- the type used to label each pointer target in the treedepth
- depthallowRedundancies
- if true, duplicate items will be included in the treesynset
- synsetsynset
JWNLException
- JWNLExceptionpublic static PointerTargetTreeNodeList makePointerTargetTreeList(Synset synset, 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.synset
- synsetsearchTypes
- the pointer types to include in the pointer listssynset
JWNLException
- JWNLExceptionpublic static PointerTargetTreeNodeList makePointerTargetTreeList(Synset synset, 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.synset
- synsetsearchTypes
- the pointer types to include in the pointer listsdepth
- depthsynset
JWNLException
- JWNLExceptionpublic static 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.searchTypes
- the pointer types to include in the pointer listslabelType
- the type used to label each pointer target in the treedepth
- depthallowRedundancies
- if true, duplicate items will be included in the treesynset
- synsetsynset
JWNLException
- JWNLExceptionpublic static 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.list
- listsearchType
- the pointer type to include in the pointer listslabelType
- the type used to label each pointer target in the treedepth
- depthallowRedundancies
- if true, duplicate items will be included in the treesynset
in listJWNLException
- JWNLExceptionpublic static 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.searchTypes
- the pointer types to include in the pointer listslabelType
- the type used to label each pointer target in the treedepth
- depthallowRedundancies
- if true, duplicate items will be included in the treelist
- listsynset
in listJWNLException
- JWNLExceptionpublic static PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType) throws JWNLException
synset
- synsetsearchType
- the pointer type to include in the pointer listsJWNLException
- JWNLExceptionpublic static PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType, PointerType labelType, int pointerDepth, int ancestorDepth) throws JWNLException
searchType
- pointer typelabelType
- the type used to label each pointer target in the treepointerDepth
- the depth to which to search for each pointer listancestorDepth
- the depth to which to go to in the hypernym listsynset
- synsetJWNLException
- JWNLExceptionpublic static PointerTargetTree makeInheritedTree(Synset synset, PointerType searchType, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException
searchType
- pointer typelabelType
- the type used to label each pointer target in the treepointerDepth
- 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 listsynset
- synsetJWNLException
- JWNLExceptionpublic static PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes) throws JWNLException
synset
- synsetsearchTypes
- the pointer types to include in the pointer listsJWNLException
- JWNLExceptionpublic static PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth) throws JWNLException
searchTypes
- the pointer types to include in the pointer listslabelType
- the type used to label each pointer target in the treepointerDepth
- the depth to which to search for each pointer listancestorDepth
- the depth to which to go to in the hypernym listsynset
- synsetJWNLException
- JWNLExceptionpublic static PointerTargetTree makeInheritedTree(Synset synset, PointerType[] searchTypes, PointerType labelType, int pointerDepth, int ancestorDepth, boolean allowRedundancies) throws JWNLException
searchTypes
- the pointer types to include in the pointer listslabelType
- the type used to label each pointer target in the treepointerDepth
- 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 listsynset
- synsetJWNLException
- JWNLExceptionpublic static 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 type used to label each pointer target in the treepointerDepth
- 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
- JWNLExceptionpublic static 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 type used to label each pointer target in the treepointerDepth
- 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
- JWNLException