com.wcohen.ss
Class DistanceLearnerFactory

java.lang.Object
  extended by com.wcohen.ss.DistanceLearnerFactory

public class DistanceLearnerFactory
extends java.lang.Object

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

DistanceLearnerFactory

public DistanceLearnerFactory()
Method Detail

build

public static StringDistanceLearner build(java.lang.String classNames)
Generate a StringDistance from a class name, or a sequence of classnames separated by slashes.


buildArray

public static StringDistance[] buildArray(java.lang.String classNames)
Generate a StringDistanceArray given a sequence of classnames separated by slashes.


build

public static StringDistanceLearner build(java.lang.String[] classNames)
Generate a StringDistance from a sequence of classnames.


main

public static void main(java.lang.String[] args)
Test routine.