|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.CombinedStringDistanceLearner.CombinedStringDistance
protected abstract class CombinedStringDistanceLearner.CombinedStringDistance
Abstract class for combining innerDistances's
Field Summary | |
---|---|
protected StringDistance[] |
innerDistances
|
protected MultiStringWrapper |
prototype
|
Constructor Summary | |
---|---|
CombinedStringDistanceLearner.CombinedStringDistance(StringDistance[] innerDistances,
MultiStringWrapper prototype)
|
Method Summary | |
---|---|
protected abstract double |
doScore(MultiStringWrapper ms,
MultiStringWrapper mt)
Produce a score, assuming ms and mt are the correct sizes, and fully prepared. |
protected abstract java.lang.String |
explainCombination(MultiStringWrapper ms,
MultiStringWrapper mt)
Explain how the primitive scores were combined. |
java.lang.String |
explainScore(java.lang.String s,
java.lang.String t)
Explain how the distance was computed. |
java.lang.String |
explainScore(StringWrapper s,
StringWrapper t)
Explain how the distance was computed. |
protected java.lang.String |
innerDistanceString()
Help class for 'toString()' which produces a description of the distances being combined. |
StringWrapper |
prepare(java.lang.String s)
Preprocess a string for distance computation |
double |
score(java.lang.String s,
java.lang.String t)
Find the distance between s and t |
double |
score(StringWrapper s,
StringWrapper t)
Find the distance between s and t. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StringDistance[] innerDistances
protected MultiStringWrapper prototype
Constructor Detail |
---|
public CombinedStringDistanceLearner.CombinedStringDistance(StringDistance[] innerDistances, MultiStringWrapper prototype)
Method Detail |
---|
public final double score(java.lang.String s, java.lang.String t)
StringDistance
score
in interface StringDistance
public final java.lang.String explainScore(java.lang.String s, java.lang.String t)
StringDistance
explainScore
in interface StringDistance
public final StringWrapper prepare(java.lang.String s)
StringDistance
prepare
in interface StringDistance
public final double score(StringWrapper s, StringWrapper t)
StringDistance
score
in interface StringDistance
public final java.lang.String explainScore(StringWrapper s, StringWrapper t)
StringDistance
explainScore
in interface StringDistance
protected abstract double doScore(MultiStringWrapper ms, MultiStringWrapper mt)
protected abstract java.lang.String explainCombination(MultiStringWrapper ms, MultiStringWrapper mt)
protected java.lang.String innerDistanceString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |