|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.matching.tsms.FieldScoreModifier
public class FieldScoreModifier
Modifies the scores of a term for a document, given the tags the term appears in the document. This class implements the TermScoreModifier interface.
Constructor Summary | |
---|---|
FieldScoreModifier()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a clone of this object (deep copy). |
java.lang.String |
getName()
Returns the name of the modifier. |
int |
modifyScores(double[] scores,
int[][] pointers)
Modifies the scores of documents for a particular term, based on the fields a term appears in documents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.gla.terrier.matching.tsms.TermScoreModifier |
---|
hashCode |
Constructor Detail |
---|
public FieldScoreModifier()
Method Detail |
---|
public int modifyScores(double[] scores, int[][] pointers)
modifyScores
in interface TermScoreModifier
scores
- double[] the scores of the documents.pointers
- int[][] the pointers read from the inverted file
for a particular query term.
public java.lang.String getName()
TermScoreModifier
getName
in interface TermScoreModifier
public java.lang.Object clone()
TermScoreModifier
clone
in interface TermScoreModifier
clone
in class java.lang.Object
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |