edu.cmu.minorthird.classify.sequential
Class CollinsPerceptronLearner.MultiClassVPClassifier

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.CollinsPerceptronLearner.MultiClassVPClassifier
All Implemented Interfaces:
Classifier, Visible, java.io.Serializable
Enclosing class:
CollinsPerceptronLearner

public static class CollinsPerceptronLearner.MultiClassVPClassifier
extends java.lang.Object
implements Classifier, Visible, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CollinsPerceptronLearner.MultiClassVPClassifier(ExampleSchema schema)
           
 
Method Summary
 ClassLabel classification(Instance instance)
          Return a predicted type for the span, as a class label.
 void completeUpdate()
           
 java.lang.String explain(Instance instance)
          Return some string that 'explains' the classification
 Explanation getExplanation(Instance instance)
          Return an Explanation for the classification
 Hyperplane[] getHyperplanes()
           
 ExampleSchema getSchema()
           
 void reset()
           
 void setVoteMode(boolean flag)
           
 Viewer toGUI()
          Create a view of this object
 java.lang.String toString()
           
 void update(java.lang.String className, Instance instance, double delta)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollinsPerceptronLearner.MultiClassVPClassifier

public CollinsPerceptronLearner.MultiClassVPClassifier(ExampleSchema schema)
Method Detail

setVoteMode

public void setVoteMode(boolean flag)

getHyperplanes

public Hyperplane[] getHyperplanes()

getSchema

public ExampleSchema getSchema()

update

public void update(java.lang.String className,
                   Instance instance,
                   double delta)

completeUpdate

public void completeUpdate()

classification

public ClassLabel classification(Instance instance)
Description copied from interface: Classifier
Return a predicted type for the span, as a class label.

Specified by:
classification in interface Classifier

explain

public java.lang.String explain(Instance instance)
Description copied from interface: Classifier
Return some string that 'explains' the classification

Specified by:
explain in interface Classifier

getExplanation

public Explanation getExplanation(Instance instance)
Description copied from interface: Classifier
Return an Explanation for the classification

Specified by:
getExplanation in interface Classifier

toGUI

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

Specified by:
toGUI in interface Visible

reset

public void reset()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object