anl.aida.core
Interface ScoredDocumentCallback

All Known Implementing Classes:
TermsTest.TestDocCallback

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

newDocument

void newDocument(int docIndex,
                 MIFSDocument document)
Called when a new document is about to be processed.

Parameters:
docIndex - the index of the document in the collection
document - the document itself.

apply

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.

Parameters:
termIndex - the index of the term in the collection
term - the term itself
frequency - the frequency of the term in the doc
score - the terms score in the document