|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.TermsTest.TestDocCallback
class TermsTest.TestDocCallback
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 |
---|
java.util.List<java.lang.String> docPath
Constructor Detail |
---|
TermsTest.TestDocCallback()
Method Detail |
---|
public void newDocument(int docIndex, MIFSDocument document)
ScoredDocumentCallback
newDocument
in interface ScoredDocumentCallback
docIndex
- the index of the document in the collectiondocument
- the document itself.public void apply(int termIndex, MIFSTerm term, int freq, float score)
ScoredDocumentCallback
apply
in interface ScoredDocumentCallback
termIndex
- the index of the term in the collectionterm
- the term itselffreq
- 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 |