|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.score.AbstractSTCScorer
public class AbstractSTCScorer
Abstract base class for scorers that use an STC. This does some caching of the term indices to improve speed.
Field Summary | |
---|---|
protected ScoredTermsCollection |
stc
|
private java.util.Map<java.lang.String,java.lang.Integer> |
termIndexCache
|
Constructor Summary | |
---|---|
AbstractSTCScorer(ScoredTermsCollection stc)
|
Method Summary | |
---|---|
protected int |
getTermIndex(java.lang.String term)
Gets the stc term index for the specified term. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ScoredTermsCollection stc
private java.util.Map<java.lang.String,java.lang.Integer> termIndexCache
Constructor Detail |
---|
public AbstractSTCScorer(ScoredTermsCollection stc)
Method Detail |
---|
protected int getTermIndex(java.lang.String term)
term
- the term whose index we want to get
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |