|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wcohen.ss.DistanceLearnerFactory
public class DistanceLearnerFactory
Creates distance metric learners from string descriptions. String descriptions are of the form D1/D2/..Dk where D is either the class name of a StringDistanceLearner or a class name plus [param=xxx] where xxx is a double. For example,
SoftTFIDF[tokenMatchThreshold=0.9]/WinklerVariant/Jaro
builds the JaroWinklerSoftTFIDF class.
Constructor Summary | |
---|---|
DistanceLearnerFactory()
|
Method Summary | |
---|---|
static StringDistanceLearner |
build(java.lang.String classNames)
Generate a StringDistance from a class name, or a sequence of classnames separated by slashes. |
static StringDistanceLearner |
build(java.lang.String[] classNames)
Generate a StringDistance from a sequence of classnames. |
static StringDistance[] |
buildArray(java.lang.String classNames)
Generate a StringDistanceArray given a sequence of classnames separated by slashes. |
static void |
main(java.lang.String[] args)
Test routine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistanceLearnerFactory()
Method Detail |
---|
public static StringDistanceLearner build(java.lang.String classNames)
public static StringDistance[] buildArray(java.lang.String classNames)
public static StringDistanceLearner build(java.lang.String[] classNames)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |