public class PathFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
addToPath |
HashSet<edu.mit.jwi.item.Pointer> |
ent |
HashSet<edu.mit.jwi.item.Pointer> |
hypers |
int |
MAX |
static boolean |
related |
static boolean |
root |
HashSet<edu.mit.jwi.item.Pointer> |
simPointers |
HashSet<edu.mit.jwi.item.Pointer> |
simPointersLex |
WNWrapper |
wrap |
| Constructor and Description |
|---|
PathFinder(String wnPath) |
PathFinder(String wnPath,
boolean useJar) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
findConnection(String w1,
String w2) |
WNPath |
findConnection(String w1,
String w2,
boolean twoWay,
HashSet<edu.mit.jwi.item.Pointer> ptrs,
ArrayList<edu.mit.jwi.item.ISynset> synsets1,
ArrayList<edu.mit.jwi.item.ISynset> synsets2) |
WNPath |
findConnection(String w1,
String w2,
boolean twoWay,
HashSet<edu.mit.jwi.item.Pointer> ptrs,
edu.mit.jwi.item.IWord iw1,
edu.mit.jwi.item.IWord iw2,
boolean pos,
edu.mit.jwi.item.POS pos1,
edu.mit.jwi.item.POS pos2) |
int |
getLCS(edu.mit.jwi.item.ISynset is) |
ArrayList<Triple<edu.mit.jwi.item.ISynset,Integer,ArrayList<edu.mit.jwi.item.IPointer>>> |
getParents(edu.mit.jwi.item.ISynset is,
int curr,
ArrayList<Triple<edu.mit.jwi.item.ISynset,Integer,ArrayList<edu.mit.jwi.item.IPointer>>> lis,
ArrayList<edu.mit.jwi.item.IPointer> pts,
HashSet<edu.mit.jwi.item.Pointer> ptrs) |
boolean |
isRelated(String w1,
String w2) |
boolean |
isRelated(String w1,
String w2,
edu.mit.jwi.item.POS pos1,
edu.mit.jwi.item.POS pos2) |
static void |
main(String[] args) |
double |
score_binary(String w1,
String w2) |
double |
wnsim(String w1,
String w2) |
WNPath |
wnsim(String w1,
String w2,
boolean doesnothing) |
WNPath |
wnsim(String w1,
String w2,
HashSet<edu.mit.jwi.item.Pointer> ptrs) |
double |
wnsimPOS(String word1,
edu.mit.jwi.item.POS pos1,
String word2,
edu.mit.jwi.item.POS pos2) |
public WNWrapper wrap
public int MAX
public HashSet<edu.mit.jwi.item.Pointer> simPointers
public HashSet<edu.mit.jwi.item.Pointer> simPointersLex
public HashSet<edu.mit.jwi.item.Pointer> hypers
public HashSet<edu.mit.jwi.item.Pointer> ent
public static boolean addToPath
public static boolean root
public static boolean related
public PathFinder(String wnPath) throws IOException
IOExceptionpublic PathFinder(String wnPath, boolean useJar) throws IOException
IOExceptionpublic static void main(String[] args)
public boolean isRelated(String w1, String w2, edu.mit.jwi.item.POS pos1, edu.mit.jwi.item.POS pos2)
public double wnsimPOS(String word1, edu.mit.jwi.item.POS pos1, String word2, edu.mit.jwi.item.POS pos2)
public WNPath findConnection(String w1, String w2, boolean twoWay, HashSet<edu.mit.jwi.item.Pointer> ptrs, edu.mit.jwi.item.IWord iw1, edu.mit.jwi.item.IWord iw2, boolean pos, edu.mit.jwi.item.POS pos1, edu.mit.jwi.item.POS pos2)
public WNPath findConnection(String w1, String w2, boolean twoWay, HashSet<edu.mit.jwi.item.Pointer> ptrs, ArrayList<edu.mit.jwi.item.ISynset> synsets1, ArrayList<edu.mit.jwi.item.ISynset> synsets2)
public ArrayList<Triple<edu.mit.jwi.item.ISynset,Integer,ArrayList<edu.mit.jwi.item.IPointer>>> getParents(edu.mit.jwi.item.ISynset is, int curr, ArrayList<Triple<edu.mit.jwi.item.ISynset,Integer,ArrayList<edu.mit.jwi.item.IPointer>>> lis, ArrayList<edu.mit.jwi.item.IPointer> pts, HashSet<edu.mit.jwi.item.Pointer> ptrs)
public int getLCS(edu.mit.jwi.item.ISynset is)
Copyright © 2017. All rights reserved.