Package org.terrier.utility
Class FieldScore
- java.lang.Object
-
- org.terrier.utility.FieldScore
-
public class FieldScore extends java.lang.Object
A class for modifying the retrieval scores of documents, according to whether the query terms appear to any of the fields, or tags specified by the property FieldTags.process. These tags can be either HTML tags or tags such as DOCHDR, from the documents.
If a query term appears in any of the specified tags, then the document score can be altered according to the values specified in the property field.modifiers. For example, if FieldTags.process=TITLE,H1,B and field.modifiers=0.10,0.00,0.00, then if a query term appears in the title of a document, the document's score will be increased by a factor of 0.10.- Author:
- Douglas Johnson, Vassilis Plachouras
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
FIELD_NAMES
The names of the fields to be processed.static int
FIELDS_COUNT
The total number of tags to check for.static boolean
USE_FIELD_INFORMATION
Indicates whether field information is used.
-
Constructor Summary
Constructors Constructor Description FieldScore()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
init()
Initialises the FieldTags tagset
-
-
-
Field Detail
-
FIELDS_COUNT
public static int FIELDS_COUNT
The total number of tags to check for.
-
USE_FIELD_INFORMATION
public static boolean USE_FIELD_INFORMATION
Indicates whether field information is used.
-
FIELD_NAMES
public static java.lang.String[] FIELD_NAMES
The names of the fields to be processed. The values are read from the property FieldTags.process.
-
-