Class 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 labels

    Label 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • defLabel

        protected java.lang.String defLabel
      • logger

        protected org.slf4j.Logger logger
    • Constructor Detail

      • LabelDecorator

        public LabelDecorator()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getValues

        public java.lang.String[] getValues​(Request rq,
                                            int[] targetIds)
      • getInfo

        public java.lang.String getInfo()
        Description copied from interface: Process
        Returns the name of the processor.
        Specified by:
        getInfo in interface Process
        Returns:
        String the name of the processor.