public class WordSim extends Object implements Metric<String>
| Constructor and Description |
|---|
WordSim(ResourceManager rm_,
String method)
Initialize specific word metrics instance
|
| Modifier and Type | Method and Description |
|---|---|
MetricResponse |
compare(String arg1,
String arg2)
Intended to calculate similarity between two things -- generally,
elements from text.
|
MetricResponse |
compare(String small,
String big,
String method)
similarity comparison method
|
File |
getFile(String method) |
public WordSim(ResourceManager rm_, String method)
rm_ - method - is the word comparison metricpublic MetricResponse compare(String arg1, String arg2) throws IllegalArgumentException
Metriccompare in interface Metric<String>arg1 - 1st componentarg2 - 2nd componentIllegalArgumentExceptionpublic MetricResponse compare(String small, String big, String method)
small - word1big - word2method - word metrics methodCopyright © 2017. All rights reserved.