|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.matching.tsms.RequiredTermModifier
public class RequiredTermModifier
Resets the scores of documents according to whether a term is required or not, and whether it appears in the retrieved documents. This class implements the TermScoreModifier interface.
| Constructor Summary | |
|---|---|
RequiredTermModifier(boolean r)
Constructs an instance of a TermInFieldModifier given the requirement that the term should, or should not appear in the query. |
|
| 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 |
hashCode()
|
int |
modifyScores(double[] scores,
int[][] pointers)
Resets the scores of documents for a particular term, based on the requirement of appearance of the corresponding term. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequiredTermModifier(boolean r)
r - boolean indicates whether the term is required
to appear in the retrieved documents.| Method Detail |
|---|
public int modifyScores(double[] scores,
int[][] pointers)
modifyScores in interface TermScoreModifierscores - 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 TermScoreModifierpublic int hashCode()
hashCode in interface TermScoreModifierhashCode in class java.lang.Objectpublic java.lang.Object clone()
TermScoreModifier
clone in interface TermScoreModifierclone 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 | |||||||||