Class InstanceWeightGetterC

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

    public class InstanceWeightGetterC
    extends Object
    implements edu.upf.taln.ml.feat.base.FeatCalculator<Double,​gate.Annotation,​DocumentCtx>
    Get the name of the document (or a random integer if no name can be retrieved)
    • Constructor Detail

      • InstanceWeightGetterC

        public InstanceWeightGetterC()
    • 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>