public static class LingoClusteringAlgorithmDescriptor.AttributeBuilder extends Object
LingoClusteringAlgorithm component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LingoClusteringAlgorithmDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
ClusterBuilderDescriptor.AttributeBuilder |
clusterBuilder()
Returns an attribute builder for the nested
ClusterBuilder component, backed by the same attribute map
as the current builder. |
List<Cluster> |
clusters() |
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
desiredClusterCountBase(int value)
Desired cluster count base.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
desiredClusterCountBase(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Desired cluster count base.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
Documents to cluster.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
documents(List<Document> value)
Documents to cluster.
|
LabelFormatterDescriptor.AttributeBuilder |
labelFormatter()
Returns an attribute builder for the nested
LabelFormatter component, backed by the same attribute map
as the current builder. |
TermDocumentMatrixBuilderDescriptor.AttributeBuilder |
matrixBuilder()
Returns an attribute builder for the nested
TermDocumentMatrixBuilder component, backed by the same attribute map
as the current builder. |
TermDocumentMatrixReducerDescriptor.AttributeBuilder |
matrixReducer()
Returns an attribute builder for the nested
TermDocumentMatrixReducer component, backed by the same attribute map
as the current builder. |
MultilingualClusteringDescriptor.AttributeBuilder |
multilingualClustering()
Returns an attribute builder for the nested
MultilingualClustering component, backed by the same attribute map
as the current builder. |
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
preprocessingPipeline(Class<?> clazz)
Common preprocessing tasks handler, contains bindable attributes.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
preprocessingPipeline(org.carrot2.util.attribute.IObjectFactory<? extends IPreprocessingPipeline> value)
Common preprocessing tasks handler, contains bindable attributes.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
preprocessingPipeline(IPreprocessingPipeline value)
Common preprocessing tasks handler, contains bindable attributes.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
query(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Query that produced the documents.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
query(String value)
Query that produced the documents.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
scoreWeight(double value)
Balance between cluster score and size during cluster sorting.
|
LingoClusteringAlgorithmDescriptor.AttributeBuilder |
scoreWeight(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Balance between cluster score and size during cluster sorting.
|
public LingoClusteringAlgorithmDescriptor.AttributeBuilder query(String value)
LingoClusteringAlgorithm.querypublic LingoClusteringAlgorithmDescriptor.AttributeBuilder query(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
LingoClusteringAlgorithm.querypublic LingoClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
LingoClusteringAlgorithm.documentspublic LingoClusteringAlgorithmDescriptor.AttributeBuilder documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
LingoClusteringAlgorithm.documentspublic List<Cluster> clusters()
LingoClusteringAlgorithm.clusterspublic LingoClusteringAlgorithmDescriptor.AttributeBuilder scoreWeight(double value)
LingoClusteringAlgorithm.scoreWeightpublic LingoClusteringAlgorithmDescriptor.AttributeBuilder scoreWeight(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
LingoClusteringAlgorithm.scoreWeightpublic LingoClusteringAlgorithmDescriptor.AttributeBuilder desiredClusterCountBase(int value)
public LingoClusteringAlgorithmDescriptor.AttributeBuilder desiredClusterCountBase(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public LingoClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(IPreprocessingPipeline value)
public LingoClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(Class<?> clazz)
public LingoClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(org.carrot2.util.attribute.IObjectFactory<? extends IPreprocessingPipeline> value)
public TermDocumentMatrixBuilderDescriptor.AttributeBuilder matrixBuilder()
TermDocumentMatrixBuilder component, backed by the same attribute map
as the current builder.public TermDocumentMatrixReducerDescriptor.AttributeBuilder matrixReducer()
TermDocumentMatrixReducer component, backed by the same attribute map
as the current builder.public ClusterBuilderDescriptor.AttributeBuilder clusterBuilder()
ClusterBuilder component, backed by the same attribute map
as the current builder.public LabelFormatterDescriptor.AttributeBuilder labelFormatter()
LabelFormatter component, backed by the same attribute map
as the current builder.public MultilingualClusteringDescriptor.AttributeBuilder multilingualClustering()
MultilingualClustering component, backed by the same attribute map
as the current builder.