Class DocumentSectionPositionC
- java.lang.Object
-
- edu.upf.taln.dri.module.rhetclassifier.feats.generator.DocumentSectionPositionC
-
- All Implemented Interfaces:
edu.upf.taln.ml.feat.base.FeatCalculator<Double,gate.Annotation,DocumentCtx>
public class DocumentSectionPositionC extends Object implements edu.upf.taln.ml.feat.base.FeatCalculator<Double,gate.Annotation,DocumentCtx>
Get the order number of the sentence inside the document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocumentSectionPositionC.SectionPositionENUM
-
Constructor Summary
Constructors Constructor Description DocumentSectionPositionC(DocumentSectionPositionC.SectionPositionENUM sectionType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.upf.taln.ml.feat.base.MyDouble
calculateFeature(gate.Annotation obj, DocumentCtx doc, String featName)
static void
main(String[] args)
static double
round(double value, int places)
-
-
-
Constructor Detail
-
DocumentSectionPositionC
public DocumentSectionPositionC(DocumentSectionPositionC.SectionPositionENUM sectionType)
-
-
Method Detail
-
calculateFeature
public edu.upf.taln.ml.feat.base.MyDouble calculateFeature(gate.Annotation obj, DocumentCtx doc, String featName)
- Specified by:
calculateFeature
in interfaceedu.upf.taln.ml.feat.base.FeatCalculator<Double,gate.Annotation,DocumentCtx>
-
round
public static double round(double value, int places)
-
main
public static void main(String[] args)
-
-