public static class BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder extends Object
BisectingKMeansClusteringAlgorithm
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 |
AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder clusterCount(int value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder clusterCount(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder maxIterations(int value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder maxIterations(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder useDimensionalityReduction(boolean value)
true
, k-means will be applied on the
dimensionality-reduced term-document matrix with the number of dimensions being
equal to twice the number of requested clusters. If the number of dimensions is
lower than the number of input documents, reduction will not be performed.
If false
, the k-means will
be performed directly on the original term-document matrix.public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder useDimensionalityReduction(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
true
, k-means will be applied on the
dimensionality-reduced term-document matrix with the number of dimensions being
equal to twice the number of requested clusters. If the number of dimensions is
lower than the number of input documents, reduction will not be performed.
If false
, the k-means will
be performed directly on the original term-document matrix.public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder partitionCount(int value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder partitionCount(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder labelCount(int value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder labelCount(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(IPreprocessingPipeline value)
public BisectingKMeansClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(Class<?> clazz)
public BisectingKMeansClusteringAlgorithmDescriptor.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 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.