public class Cluster extends Object
Constructor and Description |
---|
Cluster(List<String> labels,
double score,
List<String> docIds) |
Cluster(List<String> labels,
double score,
List<String> docIds,
List<Cluster> subclusters,
boolean otherTopics) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<String> |
getDocs() |
List<String> |
getLabels() |
double |
getScore() |
List<Cluster> |
getSubclusters() |
int |
hashCode() |
boolean |
isOtherTopics() |
void |
setDocs(List<String> docIds) |
void |
setLabels(List<String> labels) |
void |
setScore(double score) |
public Cluster(List<String> labels, double score, List<String> docIds, List<Cluster> subclusters, boolean otherTopics)
labels
- the list of human readable labels associated to the clusterscore
- the score produced by the clustering algorithm for the current clusterdocIds
- the list of document Ids belonging to the clusterpublic double getScore()
public void setScore(double score)
public boolean isOtherTopics()
true
, the cluster contains references to documents that are not semantically associated
and form a group of documents not related to any other cluster (or themselves).Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.