Class TransducerConfidenceEstimator

    • Constructor Detail

      • TransducerConfidenceEstimator

        public TransducerConfidenceEstimator​(Transducer model)
    • Method Detail

      • estimateConfidenceFor

        public double estimateConfidenceFor​(Segment segment)
        Calculates the confidence in the tagging of a Segment.
      • getSegmentConfidences

        public java.util.Vector getSegmentConfidences()
      • rankSegmentsByConfidence

        public Segment[] rankSegmentsByConfidence​(InstanceList ilist,
                                                  java.lang.Object[] startTags,
                                                  java.lang.Object[] continueTags)
        Ranks all Segments in this InstanceList by confidence estimate.
        Parameters:
        ilist - list of segmentation instances
        startTags - represent the labels for the start states (B-) of all segments
        continueTags - represent the labels for the continue state (I-) of all segments
        Returns:
        array of Segments ordered by non-decreasing confidence scores, as calculated by estimateConfidenceFor
      • rankSegmentsByConfidence

        public Segment[] rankSegmentsByConfidence​(Instance instance,
                                                  java.lang.Object[] startTags,
                                                  java.lang.Object[] continueTags)
        ranks the segments in one Instance
        Parameters:
        instance - instances to be segmented
        startTags - represent the labels for the start states (e.g. B-) of all segments
        continueTags - represent the labels for the continue state (e.g. I-) of all segments
        Returns:
        array of Segments ordered by non-decreasing confidence scores, as calculated by estimateConfidenceFor
      • getTransducer

        public Transducer getTransducer()