Class ContainSubjectivityCueC
- java.lang.Object
-
- edu.upf.taln.dri.module.rhetclassifier.feats.generator.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 Summary
Constructors Constructor Description 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.
-
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
-
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 interfaceedu.upf.taln.ml.feat.base.FeatCalculator<Double,gate.Annotation,DocumentCtx>
-
-