edu.umass.cs.mallet.projects.seg_plus_coref.coreference
Class CorefCluster
java.lang.Object
edu.umass.cs.mallet.projects.seg_plus_coref.coreference.CorefCluster
- public class CorefCluster
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CorefCluster
public CorefCluster()
CorefCluster
public CorefCluster(double threshold)
CorefCluster
public CorefCluster(double threshold,
MaxEnt classifier)
setThreshold
public void setThreshold(double t)
train
public void train(InstanceList ilist)
getClassifier
public MaxEnt getClassifier()
clusterMentions
public java.util.Collection clusterMentions(InstanceList ilist,
java.util.List mentions)
addVerticesToGraph
public void addVerticesToGraph(salvo.jesus.graph.WeightedGraph graph,
java.util.List mentions,
java.util.HashMap alreadyAddedVertices)
absoluteCluster
public java.util.Collection absoluteCluster(InstanceList ilist,
java.util.List mentions)
typicalClusterPartition
public java.util.Collection typicalClusterPartition(salvo.jesus.graph.WeightedGraph graph)
mergeVertices
public void mergeVertices(salvo.jesus.graph.WeightedGraph g,
salvo.jesus.graph.VertexImpl v1,
salvo.jesus.graph.VertexImpl v2)
constructEdgesUsingTrainedClusterer
public static void constructEdgesUsingTrainedClusterer(salvo.jesus.graph.WeightedGraph graph,
Instance instPair,
java.util.HashMap alreadyAdded,
MaxEnt classifier)