anl.aida.score
Class TFScorer

java.lang.Object
  extended by anl.aida.score.AbstractSTCScorer
      extended by anl.aida.score.TFScorer
All Implemented Interfaces:
Scorer

public class TFScorer
extends AbstractSTCScorer
implements Scorer

Scorer that returns the term frequency for a term in a document.


Field Summary
 
Fields inherited from class anl.aida.score.AbstractSTCScorer
stc
 
Constructor Summary
TFScorer(ScoredTermsCollection stc)
           
 
Method Summary
 float getScore(java.lang.String term, DocumentID id)
          Gets the term frequency for the specified term w/r to the specified document.
 
Methods inherited from class anl.aida.score.AbstractSTCScorer
getTermIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFScorer

public TFScorer(ScoredTermsCollection stc)
Method Detail

getScore

public float getScore(java.lang.String term,
                      DocumentID id)
Gets the term frequency for the specified term w/r to the specified document.

Specified by:
getScore in interface Scorer
Parameters:
term - the term whose score we want
id - the id of the document
Returns:
the term frequency for the specified term w/r to the specified document.