Class IntersectingGroupsOfCitationCountC
- java.lang.Object
-
- edu.upf.taln.dri.module.rhetclassifier.feats.generator.IntersectingGroupsOfCitationCountC
-
- All Implemented Interfaces:
edu.upf.taln.ml.feat.base.FeatCalculator<Double,gate.Annotation,DocumentCtx>
public class IntersectingGroupsOfCitationCountC extends Object implements edu.upf.taln.ml.feat.base.FeatCalculator<Double,gate.Annotation,DocumentCtx>
Get the number of intersecting annotations from a given annotation set, of a given type and eventyally evin a specific feature with a specific String value.
-
-
Constructor Summary
Constructors Constructor Description IntersectingGroupsOfCitationCountC(String citationAnnotationSet, String inlineCitationAnnotationName, String inlineCitationMarkerAnnotationName, boolean booleanOutput)
Return the count of annotations of type inlineCitationAnnotationName overlapping more than one inlineCitationMarkerAnnotationName If booleanOutput is set to true, the output is equal to 1 if there is at least one match of a word, if not 0
-
Method Summary
All 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)
-
-
-
Constructor Detail
-
IntersectingGroupsOfCitationCountC
public IntersectingGroupsOfCitationCountC(String citationAnnotationSet, String inlineCitationAnnotationName, String inlineCitationMarkerAnnotationName, boolean booleanOutput)
Return the count of annotations of type inlineCitationAnnotationName overlapping more than one inlineCitationMarkerAnnotationName If booleanOutput is set to true, the output is equal to 1 if there is at least one match of a word, if not 0- Parameters:
citationAnnotationSet
-inlineCitationAnnotationName
-inlineCitationMarkerAnnotationName
-
-
-
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>
-
-