Class 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 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 interface edu.upf.taln.ml.feat.base.FeatCalculator<Double,​gate.Annotation,​DocumentCtx>