Class DocumentSentenceIdentifierC

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

    public class DocumentSentenceIdentifierC
    extends Object
    implements edu.upf.taln.ml.feat.base.FeatCalculator<String,​gate.Annotation,​DocumentCtx>
    Get the order number of the sentence inside the document (the number 1 is assigned to the first sentence of the abstract).
    • Constructor Detail

      • DocumentSentenceIdentifierC

        public DocumentSentenceIdentifierC()
    • 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>