Class DocumentSectionIdentifierC

  • All Implemented Interfaces:
    edu.upf.taln.ml.feat.base.FeatCalculator<String,​gate.Annotation,​DocumentCtx>

    public class DocumentSectionIdentifierC
    extends Object
    implements edu.upf.taln.ml.feat.base.FeatCalculator<String,​gate.Annotation,​DocumentCtx>
    Get the id and title of the document section that contains the sentence.
    • Method Detail

      • calculateFeature

        public edu.upf.taln.ml.feat.base.MyString calculateFeature​(gate.Annotation obj,
                                                                   DocumentCtx doc,
                                                                   String featName)
        Specified by:
        calculateFeature in interface edu.upf.taln.ml.feat.base.FeatCalculator<String,​gate.Annotation,​DocumentCtx>
      • round

        public static double round​(double value,
                                   int places)
      • main

        public static void main​(String[] args)