anl.aida.score
Class OccurrenceFilter

java.lang.Object
  extended by anl.aida.score.OccurrenceFilter
All Implemented Interfaces:
TermScoreFilter

public class OccurrenceFilter
extends java.lang.Object
implements TermScoreFilter

TermScoreFilter implemenation that passes a document if the term occurs in the document.


Field Summary
private  TFScorer scorer
           
 
Constructor Summary
OccurrenceFilter(ScoredTermsCollection stc)
           
 
Method Summary
 boolean evaluate(java.lang.String term, DocumentID id)
          Evaluates the term and document to see if the term occurs in the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scorer

private TFScorer scorer
Constructor Detail

OccurrenceFilter

public OccurrenceFilter(ScoredTermsCollection stc)
Method Detail

evaluate

public boolean evaluate(java.lang.String term,
                        DocumentID id)
Evaluates the term and document to see if the term occurs in the document.

Specified by:
evaluate in interface TermScoreFilter
Parameters:
term - the term to evaluate against
id - the id of the document to evaluate
Returns:
true if the document passes the filter w/r to the specified term, otherwise false.