edu.umass.cs.mallet.projects.seg_plus_coref.clustering
Class ConstrainedClusterer
java.lang.Object
edu.umass.cs.mallet.projects.seg_plus_coref.clustering.ConstrainedClusterer
- public class ConstrainedClusterer
- extends java.lang.Object
Given two clusterings of related object, constrain one based on
the clustering of another. E.g., given a clustering of papers and a
clustering of venues, constrain the paper clusterings to respect
the venues, and vice-versa.
Method Summary |
java.util.Collection |
constrainByPapers(java.util.Collection paperCluster)
Constrain ogc such that nodes that resolve to the
same paper are forced to have the same venue. |
java.util.Collection |
constrainByVenues(java.util.Collection venueCluster)
Constrain ogc such that nodes with venues from
different venue clusters will be in different clusters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstrainedClusterer
public ConstrainedClusterer(java.util.Collection originalCluster)
constrainByPapers
public java.util.Collection constrainByPapers(java.util.Collection paperCluster)
- Constrain
ogc
such that nodes that resolve to the
same paper are forced to have the same venue. Here, ogc is a
cluster of venues
constrainByVenues
public java.util.Collection constrainByVenues(java.util.Collection venueCluster)
- Constrain
ogc such that nodes with venues from
different venue clusters will be in different clusters.