|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unima.ki.mmatch.smeasures.Measure
public class Measure
Constructor Summary | |
---|---|
Measure()
|
Method Summary | |
---|---|
java.lang.Double |
compare(Term t1,
Term t2)
|
java.lang.Double |
compareTerms(Term t1,
Term t2,
boolean normalized)
This Method compares two terms and declares the similarity between them, based on the Levenshtein measure. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Measure()
Method Detail |
---|
public java.lang.Double compare(Term t1, Term t2) throws MMatchException
t1
- The first term.t2
- The second term.
MMatchException
public java.lang.Double compareTerms(Term t1, Term t2, boolean normalized) throws MMatchException
t1
- The first termt2
- The second termnormalized
- True if the similarity value of the normalized terms is required.
MMatchException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |