edu.cmu.minorthird.classify.sequential
Class SegmentCollinsPerceptronLearner.ViterbiSegmenter

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.SegmentCollinsPerceptronLearner.ViterbiSegmenter
All Implemented Interfaces:
Segmenter, Visible, java.io.Serializable
Enclosing class:
SegmentCollinsPerceptronLearner

public static class SegmentCollinsPerceptronLearner.ViterbiSegmenter
extends java.lang.Object
implements Segmenter, Visible, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
SegmentCollinsPerceptronLearner.ViterbiSegmenter(Classifier c, ExampleSchema schema, int maxSegSize)
           
 
Method Summary
 java.lang.String explain(CandidateSegmentGroup g)
          Return some string that 'explains' the classification
 Segmentation segmentation(CandidateSegmentGroup g)
          Return a predicted type for each element of the sequence.
 Viewer toGUI()
          Create a view of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentCollinsPerceptronLearner.ViterbiSegmenter

public SegmentCollinsPerceptronLearner.ViterbiSegmenter(Classifier c,
                                                        ExampleSchema schema,
                                                        int maxSegSize)
Method Detail

segmentation

public Segmentation segmentation(CandidateSegmentGroup g)
Description copied from interface: Segmenter
Return a predicted type for each element of the sequence.

Specified by:
segmentation in interface Segmenter

explain

public java.lang.String explain(CandidateSegmentGroup g)
Description copied from interface: Segmenter
Return some string that 'explains' the classification

Specified by:
explain in interface Segmenter

toGUI

public Viewer toGUI()
Description copied from interface: Visible
Create a view of this object

Specified by:
toGUI in interface Visible