Class ContainSubjectivityCueC

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

    public class ContainSubjectivityCueC
    extends Object
    implements edu.upf.taln.ml.feat.base.FeatCalculator<Double,​gate.Annotation,​DocumentCtx>
    Check if the text contains any subjectivity cue
    • Constructor Detail

      • ContainSubjectivityCueC

        public ContainSubjectivityCueC​(boolean booleanOutput,
                                       String tokenAnnotationSet,
                                       String tokenAnnotationName,
                                       String featureName,
                                       String posFeature,
                                       String featureFilterName,
                                       String featureFilterValue,
                                       boolean featureFilterStartsWith)
        The list of words to match is matched against the whole text taken from the sentence annotation.
        Parameters:
        listOfWordsToMathc -
        caseInsensitiveMatch -
        booleanOutput -
    • 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>