|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.clustering.synthetic.ByFieldClusteringAlgorithmDescriptor.AttributeBuilder
public static class ByFieldClusteringAlgorithmDescriptor.AttributeBuilder
Attribute map builder for the ByFieldClusteringAlgorithm component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.
| Field Summary | |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder. |
| Constructor Summary | |
|---|---|
protected |
ByFieldClusteringAlgorithmDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map. |
| Method Summary | |
|---|---|
List<Cluster> |
clusters()
Clusters created by the algorithm. |
ByFieldClusteringAlgorithmDescriptor.AttributeBuilder |
documents(List<Document> value)
Documents to cluster. |
ByFieldClusteringAlgorithmDescriptor.AttributeBuilder |
fieldName(String value)
Name of the field to cluster by. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Map<String,Object> map
| Constructor Detail |
|---|
protected ByFieldClusteringAlgorithmDescriptor.AttributeBuilder(Map<String,Object> map)
| Method Detail |
|---|
public ByFieldClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
ByFieldClusteringAlgorithm.documentspublic List<Cluster> clusters()
ByFieldClusteringAlgorithm.clusterspublic ByFieldClusteringAlgorithmDescriptor.AttributeBuilder fieldName(String value)
ByFieldClusteringAlgorithm.buildClusterLabel(Object). If the field value is a collection,
the document will be assigned to all clusters corresponding to the values in the
collection. Note that arrays will not be 'unfolded' in this way.
ByFieldClusteringAlgorithm.fieldName
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||