|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScoredDocumentCallback
Callback type predicate that can be applied to a ScoredTermsCollection.
Method Summary | |
---|---|
void |
apply(int termIndex,
MIFSTerm term,
int frequency,
float score)
Provides the score / frequency for the specified term for the document specified in the last newDocument call. |
void |
newDocument(int docIndex,
MIFSDocument document)
Called when a new document is about to be processed. |
Method Detail |
---|
void newDocument(int docIndex, MIFSDocument document)
docIndex
- the index of the document in the collectiondocument
- the document itself.void apply(int termIndex, MIFSTerm term, int frequency, float score)
termIndex
- the index of the term in the collectionterm
- the term itselffrequency
- the frequency of the term in the docscore
- the terms score in the document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |