public class ShortestPathFinder extends Object
| Constructor and Description |
|---|
ShortestPathFinder() |
| Modifier and Type | Method and Description |
|---|---|
static int |
shortestPath(ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset1Tree,
ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset2Tree)
Computes the shortest path between two concepts using their hypernym
paths.
|
public static int shortestPath(ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset1Tree, ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset2Tree)
synset1Tree, - the hypernym paths of the first conceptsynset2Tree, - the hypernym paths of the second conceptCopyright © 2020. All rights reserved.