public class HypernymPathsFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
useHypernyms |
static boolean |
useInstanceHypernyms |
| Constructor and Description |
|---|
HypernymPathsFinder() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> |
getHypernymPaths(SemanticDictionary dictionary,
edu.mit.jwi.item.ISynset synset)
Retrieves all hypernym paths in a tree hierarchy for a synset (concept) .
|
static ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> |
getHypernymPaths(SemanticDictionary dictionary,
edu.mit.jwi.item.ISynset synset,
Set<edu.mit.jwi.item.ISynsetID> history)
Recursive function that computes all hypernym paths in a tree hierarchy
for a synset (concept), by traversing the graph in a BFS manner.
|
public static boolean useInstanceHypernyms
public static boolean useHypernyms
public static ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> getHypernymPaths(SemanticDictionary dictionary, edu.mit.jwi.item.ISynset synset)
dictionary, - a semantic dictionary that represents the tree hierarchysynset, - the input synsetpublic static ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> getHypernymPaths(SemanticDictionary dictionary, edu.mit.jwi.item.ISynset synset, Set<edu.mit.jwi.item.ISynsetID> history)
dictionary, - a semantic dictionary that represents the tree hierarchysynset, - the input synsethistory, - auxiliary set that stores the traversed pathsCopyright © 2020. All rights reserved.