com.wcohen.ss.lookup
Interface FastLookup

All Known Implementing Classes:
RescoringSoftTFIDFDictionary, SoftTFIDFDictionary

public interface FastLookup

Interface for SoftTFIDFDictionary and the rescoring variant of it.


Method Summary
 java.lang.String getResult(int i)
          Get the i'th string found by the last lookup
 double getScore(int i)
          Get the score of the i'th string found by the last lookup
 java.lang.Object getValue(int i)
          Get the value of the i'th string found by the last lookup
 int lookup(double minScore, java.lang.String toFind)
          Lookup items similar to 'toFind', and return the number of items found.
 

Method Detail

lookup

int lookup(double minScore,
           java.lang.String toFind)
Lookup items similar to 'toFind', and return the number of items found. The found items must have a similarity score greater than minScore to 'toFind'.


getResult

java.lang.String getResult(int i)
Get the i'th string found by the last lookup


getValue

java.lang.Object getValue(int i)
Get the value of the i'th string found by the last lookup


getScore

double getScore(int i)
Get the score of the i'th string found by the last lookup