|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wcohen.ss.lookup.RescoringSoftTFIDFDictionary
public class RescoringSoftTFIDFDictionary
Wrapper around a SoftTFIDFDictionary that allows you to 'rescore' the result using an arbitrary StringDistance.
| Constructor Summary | |
|---|---|
RescoringSoftTFIDFDictionary(FastLookup inner,
double innerMinScore,
StringDistance rescorer)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RescoringSoftTFIDFDictionary(FastLookup inner,
double innerMinScore,
StringDistance rescorer)
| Method Detail |
|---|
public int lookup(double minScore,
java.lang.String toFind)
FastLookup
lookup in interface FastLookuppublic java.lang.String getResult(int i)
FastLookup
getResult in interface FastLookuppublic java.lang.Object getValue(int i)
FastLookup
getValue in interface FastLookuppublic double getScore(int i)
FastLookup
getScore in interface FastLookup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||