public class SimpleWordSimilarity extends Object implements WordSimilarity
WordSimilarity
Constructor and Description |
---|
SimpleWordSimilarity(String first,
String second,
double sim) |
Modifier and Type | Method and Description |
---|---|
String |
getFirstWord()
Returns the first word in the pair.
|
String |
getSecondWord()
Returns the second word in the pair.
|
double |
getSimilarity()
Returns the human similarity judgement for the two words.
|
public String getFirstWord()
getFirstWord
in interface WordSimilarity
public String getSecondWord()
getSecondWord
in interface WordSimilarity
public double getSimilarity()
getSimilarity
in interface WordSimilarity
Copyright © 2012. All Rights Reserved.