anl.aida.score
Class ScorerThresholdFilter

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

public class ScorerThresholdFilter
extends java.lang.Object
implements TermScoreFilter

TermScoreFilter that passes documents whose term score is greater than or equal to some threshold.


Field Summary
private  Scorer scorer
           
private  float threshold
           
 
Constructor Summary
ScorerThresholdFilter(Scorer scorer, float threshold)
           
 
Method Summary
 boolean evaluate(java.lang.String term, DocumentID id)
          Evaluates the term and document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scorer

private Scorer scorer

threshold

private float threshold
Constructor Detail

ScorerThresholdFilter

public ScorerThresholdFilter(Scorer scorer,
                             float threshold)
Method Detail

evaluate

public boolean evaluate(java.lang.String term,
                        DocumentID id)
Evaluates the term and 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.