anl.aida.score
Class SVScorer

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

public class SVScorer
extends java.lang.Object
implements Scorer

Scorer that returns the semantic vector similarity score for a term w/r to a document.


Field Summary
private  SemanticVectorStore vectorStore
           
 
Constructor Summary
SVScorer(SemanticVectorStore vectorStore)
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vectorStore

private SemanticVectorStore vectorStore
Constructor Detail

SVScorer

public SVScorer(SemanticVectorStore vectorStore)
Method Detail

getScore

public float getScore(java.lang.String term,
                      DocumentID id)
               throws MIFSRuntimeException
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.
Throws:
MIFSRuntimeException - if there's an error getting the score.