public class RelationshipFinder extends Object
Modifier and Type | Method and Description |
---|---|
RelationshipList |
findRelationships(Synset sourceSynset,
Synset targetSynset,
PointerType type)
Find all relationships of type type between sourceSynset and targetSynset.
|
RelationshipList |
findRelationships(Synset sourceSynset,
Synset targetSynset,
PointerType type,
int depth)
Find all relationships of type type between sourceSynset and targetSynset
to depth depth.
|
int |
getImmediateRelationship(IndexWord sourceWord,
IndexWord targetWord)
Looks at whether the target word is one of the words in one of the synsets
of the source word.
|
static RelationshipFinder |
getInstance() |
public static RelationshipFinder getInstance()
public int getImmediateRelationship(IndexWord sourceWord, IndexWord targetWord) throws JWNLException
JWNLException
public RelationshipList findRelationships(Synset sourceSynset, Synset targetSynset, PointerType type) throws JWNLException
JWNLException
public RelationshipList findRelationships(Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws JWNLException
JWNLException
Copyright © 2019. All rights reserved.