public abstract class RelationshipFinder
extends java.lang.Object
Constructor and Description |
---|
RelationshipFinder() |
Modifier and Type | Method and Description |
---|---|
static RelationshipList |
findRelationships(Synset sourceSynset,
Synset targetSynset,
PointerType type)
Finds all relationships of type type between sourceSynset and targetSynset.
|
static RelationshipList |
findRelationships(Synset sourceSynset,
Synset targetSynset,
PointerType type,
int depth)
Finds all relationships of type type between sourceSynset and targetSynset
to depth depth.
|
static int |
getImmediateRelationship(IndexWord sourceWord,
IndexWord targetWord)
Looks whether the target word is one of the words in one of the synsets
of the source word.
|
public static int getImmediateRelationship(IndexWord sourceWord, IndexWord targetWord)
sourceWord
- source wordtargetWord
- target wordpublic static RelationshipList findRelationships(Synset sourceSynset, Synset targetSynset, PointerType type) throws java.lang.CloneNotSupportedException, JWNLException
sourceSynset
- source synsettargetSynset
- target synsettype
- pointer typejava.lang.CloneNotSupportedException
- CloneNotSupportedExceptionJWNLException
- JWNLExceptionpublic static RelationshipList findRelationships(Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws java.lang.CloneNotSupportedException, JWNLException
sourceSynset
- source synsettargetSynset
- target synsettype
- pointer typedepth
- depthjava.lang.CloneNotSupportedException
- CloneNotSupportedExceptionJWNLException
- JWNLException