Class DocumentSectionIdentifierC
- java.lang.Object
-
- edu.upf.taln.dri.module.rhetclassifier.feats.generator.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocumentSectionIdentifierC.SectionTypeENUM
-
Constructor Summary
Constructors Constructor Description DocumentSectionIdentifierC(DocumentSectionIdentifierC.SectionTypeENUM sectionType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.upf.taln.ml.feat.base.MyString
calculateFeature(gate.Annotation obj, DocumentCtx doc, String featName)
static void
main(String[] args)
static double
round(double value, int places)
-
-
-
Constructor Detail
-
DocumentSectionIdentifierC
public DocumentSectionIdentifierC(DocumentSectionIdentifierC.SectionTypeENUM sectionType)
-
-
Method Detail
-
calculateFeature
public edu.upf.taln.ml.feat.base.MyString calculateFeature(gate.Annotation obj, DocumentCtx doc, String featName)
- Specified by:
calculateFeature
in interfaceedu.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)
-
-