edu.umass.cs.mallet.projects.seg_plus_coref.condclust.types
Class NodeClusterPair
java.lang.Object
edu.umass.cs.mallet.projects.seg_plus_coref.condclust.types.NodeClusterPair
- public class NodeClusterPair
- extends java.lang.Object
A training instance consisting of a Node and a Cluster. The
features are intended to predict whether this Node belongs to this
Cluster (label = {"yes","no"}).
Constructor Summary |
NodeClusterPair(java.lang.Object node,
java.lang.Object cluster)
|
NodeClusterPair(java.lang.Object node,
java.lang.Object cluster,
boolean label)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeClusterPair
public NodeClusterPair(java.lang.Object node,
java.lang.Object cluster)
NodeClusterPair
public NodeClusterPair(java.lang.Object node,
java.lang.Object cluster,
boolean label)
setLabel
public void setLabel(boolean label)
getLabel
public boolean getLabel()
getNode
public java.lang.Object getNode()
getCluster
public java.lang.Object getCluster()
setFeatureValue
public void setFeatureValue(java.lang.String key,
double value)
getFeatureValue
public double getFeatureValue(java.lang.String key)
getFeatures
public PropertyList getFeatures()