edu.mit.multimodal.coreference
Class MUC6DecisionTree

java.lang.Object
  extended by weka.classifiers.Classifier
      extended by edu.mit.multimodal.coreference.MUC6DecisionTree
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, weka.core.Drawable, weka.core.Matchable, weka.core.OptionHandler, weka.core.WeightedInstancesHandler

public class MUC6DecisionTree
extends weka.classifiers.Classifier
implements weka.core.Matchable, weka.core.Drawable, weka.core.WeightedInstancesHandler

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface weka.core.Drawable
BayesNet, NOT_DRAWABLE, TREE
 
Constructor Summary
MUC6DecisionTree()
           
 
Method Summary
 void buildClassifier(weka.core.Instances instances)
           
 double classifyInstance(weka.core.Instance instance)
          Classifies an instance.
 double[] distributionForInstance(weka.core.Instance instance)
          Returns class probabilities for an instance.
 java.lang.String graph()
          Returns graph describing the tree.
 int graphType()
          Returns the type of graph this classifier represents.
 java.lang.String prefix()
          Returns tree in prefix order.
 
Methods inherited from class weka.classifiers.Classifier
debugTipText, forName, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MUC6DecisionTree

public MUC6DecisionTree()
Method Detail

buildClassifier

public void buildClassifier(weka.core.Instances instances)
                     throws java.lang.Exception
Specified by:
buildClassifier in class weka.classifiers.Classifier
Throws:
java.lang.Exception

classifyInstance

public double classifyInstance(weka.core.Instance instance)
                        throws java.lang.Exception
Classifies an instance.

Overrides:
classifyInstance in class weka.classifiers.Classifier
Throws:
java.lang.Exception - if instance can't be classified successfully

distributionForInstance

public final double[] distributionForInstance(weka.core.Instance instance)
                                       throws java.lang.Exception
Returns class probabilities for an instance.

Overrides:
distributionForInstance in class weka.classifiers.Classifier
Throws:
java.lang.Exception - if distribution can't be computed successfully

graphType

public int graphType()
Returns the type of graph this classifier represents.

Specified by:
graphType in interface weka.core.Drawable
Returns:
Drawable.TREE

prefix

public java.lang.String prefix()
                        throws java.lang.Exception
Returns tree in prefix order.

Specified by:
prefix in interface weka.core.Matchable
Throws:
java.lang.Exception - if something goes wrong

graph

public java.lang.String graph()
                       throws java.lang.Exception
Returns graph describing the tree.

Specified by:
graph in interface weka.core.Drawable
Throws:
java.lang.Exception - if graph can't be computed