anl.aida
Class TermsTest.TestDocCallback

java.lang.Object
  extended by anl.aida.TermsTest.TestDocCallback
All Implemented Interfaces:
ScoredDocumentCallback
Enclosing class:
TermsTest

 class TermsTest.TestDocCallback
extends java.lang.Object
implements ScoredDocumentCallback


Field Summary
(package private)  java.util.List<java.lang.String> docPath
           
 
Constructor Summary
TermsTest.TestDocCallback()
           
 
Method Summary
 void apply(int termIndex, MIFSTerm term, int freq, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docPath

java.util.List<java.lang.String> docPath
Constructor Detail

TermsTest.TestDocCallback

TermsTest.TestDocCallback()
Method Detail

newDocument

public void newDocument(int docIndex,
                        MIFSDocument document)
Description copied from interface: ScoredDocumentCallback
Called when a new document is about to be processed.

Specified by:
newDocument in interface ScoredDocumentCallback
Parameters:
docIndex - the index of the document in the collection
document - the document itself.

apply

public void apply(int termIndex,
                  MIFSTerm term,
                  int freq,
                  float score)
Description copied from interface: ScoredDocumentCallback
Provides the score / frequency for the specified term for the document specified in the last newDocument call.

Specified by:
apply in interface ScoredDocumentCallback
Parameters:
termIndex - the index of the term in the collection
term - the term itself
freq - the frequency of the term in the doc
score - the terms score in the document