Package org.terrier.learning
Class LabelDecorator
- java.lang.Object
-
- org.terrier.learning.LabelDecorator
-
- All Implemented Interfaces:
Process
public class LabelDecorator extends java.lang.Object implements Process
A post-process to expand an existing result set to a FeaturedResultSet and add labelsLabel Related Properties:
- learning.labels.file - the filename of the qrels file containing the labels
- learning.labels.default - default feature label, if a document has not label in the specified file. Defaults to -1.
- Since:
- 4.0
- Author:
- Rodrygo Santos, Craig Macdonald
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
defLabel
protected org.slf4j.Logger
logger
protected TRECQrelsInMemory
qrels
-
Constructor Summary
Constructors Constructor Description LabelDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInfo()
Returns the name of the processor.java.lang.String[]
getValues(Request rq, int[] targetIds)
void
process(Manager manager, Request q)
-
-
-
Field Detail
-
qrels
protected TRECQrelsInMemory qrels
-
defLabel
protected java.lang.String defLabel
-
logger
protected org.slf4j.Logger logger
-
-
Method Detail
-
getValues
public java.lang.String[] getValues(Request rq, int[] targetIds)
-
-