com.wcohen.ss
Class JaroWinklerTFIDF

java.lang.Object
  extended by com.wcohen.ss.AbstractStringDistance
      extended by com.wcohen.ss.AbstractTokenizedStringDistance
          extended by com.wcohen.ss.AbstractStatisticalTokenDistance
              extended by com.wcohen.ss.TFIDF
                  extended by com.wcohen.ss.SoftTFIDF
                      extended by com.wcohen.ss.JaroWinklerTFIDF
All Implemented Interfaces:
StringDistance, StringDistanceLearner

public class JaroWinklerTFIDF
extends SoftTFIDF

Soft TFIDF-based distance metric, extended to use "soft" token-matching with the JaroWinkler distance metric.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.wcohen.ss.TFIDF
TFIDF.UnitVector
 
Field Summary
 
Fields inherited from class com.wcohen.ss.AbstractStatisticalTokenDistance
collectionSize, documentFrequency, totalTokenCount
 
Fields inherited from class com.wcohen.ss.AbstractTokenizedStringDistance
tokenizer
 
Constructor Summary
JaroWinklerTFIDF()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 java.lang.String toString()
           
 
Methods inherited from class com.wcohen.ss.SoftTFIDF
explainScore, getTokenMatchThreshold, score, setTokenMatchThreshold, setTokenMatchThreshold
 
Methods inherited from class com.wcohen.ss.TFIDF
asUnitVector, getCollectionSize, getDocumentFrequency, getTokens, getWeight, prepare, setCollectionSize, setDocumentFrequency
 
Methods inherited from class com.wcohen.ss.AbstractStatisticalTokenDistance
checkTrainingHasHappened, train
 
Methods inherited from class com.wcohen.ss.AbstractTokenizedStringDistance
asBagOfTokens, prepare, setStringWrapperPool
 
Methods inherited from class com.wcohen.ss.AbstractStringDistance
addExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, score, setDistanceInstancePool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaroWinklerTFIDF

public JaroWinklerTFIDF()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class SoftTFIDF

main

public static void main(java.lang.String[] argv)