anl.aida.score
Class TFIDFScorer

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

public class TFIDFScorer
extends AbstractSTCScorer
implements Scorer

Scorer that returns the tf/idf score for a term in a document.


Field Summary
 
Fields inherited from class anl.aida.score.AbstractSTCScorer
stc
 
Constructor Summary
TFIDFScorer(ScoredTermsCollection stc)
           
 
Method Summary
 float getScore(java.lang.String term, DocumentID id)
          Gets the tf/idf score 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

TFIDFScorer

public TFIDFScorer(ScoredTermsCollection stc)
Method Detail

getScore

public float getScore(java.lang.String term,
                      DocumentID id)
Gets the tf/idf score 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 tf/idf score for the specified term w/r to the specified document.