Package org.carrot2.clustering
Class Cluster<T>
java.lang.Object
org.carrot2.clustering.Cluster<T>
A cluster is a named group of somehow related entities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCluster
(Cluster<T> cluster) Adds a child cluster to this cluster.addDocument
(T document) Add a single document to this cluster.Add a single label to this cluster.boolean
Returns all child clusters belonging to this cluster.Returns all documents that belong directly to this cluster.getScore()
Returns this cluster's score or null, if not available.int
hashCode()
Sets this cluster's score.toString()
-
Constructor Details
-
Cluster
public Cluster()
-
-
Method Details
-
getLabels
- Returns:
- Returns a list of labels describing this cluster.
-
addLabel
Add a single label to this cluster. -
getDocuments
Returns all documents that belong directly to this cluster. -
addDocument
Add a single document to this cluster. -
getClusters
Returns all child clusters belonging to this cluster. -
addCluster
Adds a child cluster to this cluster. -
getScore
Returns this cluster's score or null, if not available. -
setScore
Sets this cluster's score. -
toString
-
equals
-
hashCode
public int hashCode()
-