public static class STCClusteringAlgorithmDescriptor.AttributeBuilder extends Object
STCClusteringAlgorithm
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.
|
Modifier and Type | Method and Description |
---|---|
List<Cluster> |
clusters()
Clusters created by the algorithm.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
documentCountBoost(double value)
Document count boost.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
documentCountBoost(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Document count boost.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
Documents to cluster.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
documents(List<Document> value)
Documents to cluster.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
ignoreWordIfInFewerDocs(int value)
Minimum word-document recurrences.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
ignoreWordIfInFewerDocs(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Minimum word-document recurrences.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
ignoreWordIfInHigherDocsPercent(double value)
Maximum word-document ratio.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
ignoreWordIfInHigherDocsPercent(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Maximum word-document ratio.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxBaseClusters(int value)
Maximum base clusters count.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxBaseClusters(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum base clusters count.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxClusters(int value)
Maximum final clusters.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxClusters(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum final clusters.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxDescPhraseLength(int value)
Maximum words per label.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxDescPhraseLength(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum words per label.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxPhraseOverlap(double value)
Maximum cluster phrase overlap.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxPhraseOverlap(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Maximum cluster phrase overlap.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxPhrases(int value)
Maximum phrases per label.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
maxPhrases(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum phrases per label.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
mergeStemEquivalentBaseClusters(boolean value)
Merge all stem-equivalent base clusters before running the merge phase.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
mergeStemEquivalentBaseClusters(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Merge all stem-equivalent base clusters before running the merge phase.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
mergeThreshold(double value)
Base cluster merge threshold.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
mergeThreshold(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Base cluster merge threshold.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
minBaseClusterScore(double value)
Minimum base cluster score.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
minBaseClusterScore(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Minimum base cluster score.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
minBaseClusterSize(int value)
Minimum documents per base cluster.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
minBaseClusterSize(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Minimum documents per base cluster.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
mostGeneralPhraseCoverage(double value)
Minimum general phrase coverage.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
mostGeneralPhraseCoverage(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Minimum general phrase coverage.
|
MultilingualClusteringDescriptor.AttributeBuilder |
multilingualClustering()
Returns an attribute builder for the nested
MultilingualClustering component, backed by the same attribute map
as the current builder. |
STCClusteringAlgorithmDescriptor.AttributeBuilder |
optimalPhraseLength(int value)
Optimal label length.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
optimalPhraseLength(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Optimal label length.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
optimalPhraseLengthDev(double value)
Phrase length tolerance.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
optimalPhraseLengthDev(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Phrase length tolerance.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
preprocessingPipeline(Class<?> clazz)
Common preprocessing tasks handler.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
preprocessingPipeline(org.carrot2.util.attribute.IObjectFactory<? extends IPreprocessingPipeline> value)
Common preprocessing tasks handler.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
preprocessingPipeline(IPreprocessingPipeline value)
Common preprocessing tasks handler.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
query(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Query that produced the documents.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
query(String value)
Query that produced the documents.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
scoreWeight(double value)
Balance between cluster score and size during cluster sorting.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
scoreWeight(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Balance between cluster score and size during cluster sorting.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
singleTermBoost(double value)
Single term boost.
|
STCClusteringAlgorithmDescriptor.AttributeBuilder |
singleTermBoost(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
Single term boost.
|
public STCClusteringAlgorithmDescriptor.AttributeBuilder query(String value)
STCClusteringAlgorithm.query
public STCClusteringAlgorithmDescriptor.AttributeBuilder query(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
STCClusteringAlgorithm.query
public STCClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
STCClusteringAlgorithm.documents
public STCClusteringAlgorithmDescriptor.AttributeBuilder documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
STCClusteringAlgorithm.documents
public List<Cluster> clusters()
STCClusteringAlgorithm.clusters
public STCClusteringAlgorithmDescriptor.AttributeBuilder ignoreWordIfInFewerDocs(int value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder ignoreWordIfInFewerDocs(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder ignoreWordIfInHigherDocsPercent(double value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder ignoreWordIfInHigherDocsPercent(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder minBaseClusterScore(double value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder minBaseClusterScore(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxBaseClusters(int value)
STCClusteringAlgorithm.maxBaseClusters
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxBaseClusters(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
STCClusteringAlgorithm.maxBaseClusters
public STCClusteringAlgorithmDescriptor.AttributeBuilder minBaseClusterSize(int value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder minBaseClusterSize(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxClusters(int value)
STCClusteringAlgorithm.maxClusters
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxClusters(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
STCClusteringAlgorithm.maxClusters
public STCClusteringAlgorithmDescriptor.AttributeBuilder mergeThreshold(double value)
STCClusteringAlgorithm.mergeThreshold
public STCClusteringAlgorithmDescriptor.AttributeBuilder mergeThreshold(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
STCClusteringAlgorithm.mergeThreshold
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxPhraseOverlap(double value)
STCClusteringAlgorithm.maxPhraseOverlap
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxPhraseOverlap(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
STCClusteringAlgorithm.maxPhraseOverlap
public STCClusteringAlgorithmDescriptor.AttributeBuilder mostGeneralPhraseCoverage(double value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder mostGeneralPhraseCoverage(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxDescPhraseLength(int value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxDescPhraseLength(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxPhrases(int value)
STCClusteringAlgorithm.maxPhrases
public STCClusteringAlgorithmDescriptor.AttributeBuilder maxPhrases(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
STCClusteringAlgorithm.maxPhrases
public STCClusteringAlgorithmDescriptor.AttributeBuilder singleTermBoost(double value)
STCClusteringAlgorithm.singleTermBoost
public STCClusteringAlgorithmDescriptor.AttributeBuilder singleTermBoost(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
STCClusteringAlgorithm.singleTermBoost
public STCClusteringAlgorithmDescriptor.AttributeBuilder optimalPhraseLength(int value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder optimalPhraseLength(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder optimalPhraseLengthDev(double value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder optimalPhraseLengthDev(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder documentCountBoost(double value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder documentCountBoost(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(IPreprocessingPipeline value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(Class<?> clazz)
public STCClusteringAlgorithmDescriptor.AttributeBuilder preprocessingPipeline(org.carrot2.util.attribute.IObjectFactory<? extends IPreprocessingPipeline> value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder scoreWeight(double value)
STCClusteringAlgorithm.scoreWeight
public STCClusteringAlgorithmDescriptor.AttributeBuilder scoreWeight(org.carrot2.util.attribute.IObjectFactory<? extends Double> value)
STCClusteringAlgorithm.scoreWeight
public STCClusteringAlgorithmDescriptor.AttributeBuilder mergeStemEquivalentBaseClusters(boolean value)
public STCClusteringAlgorithmDescriptor.AttributeBuilder mergeStemEquivalentBaseClusters(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
public MultilingualClusteringDescriptor.AttributeBuilder multilingualClustering()
MultilingualClustering
component, backed by the same attribute map
as the current builder.