public static class DocumentAssignerDescriptor.AttributeBuilder extends Object
DocumentAssigner 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 |
DocumentAssignerDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
DocumentAssignerDescriptor.AttributeBuilder |
exactPhraseAssignment(boolean value)
Only exact phrase assignments.
|
DocumentAssignerDescriptor.AttributeBuilder |
exactPhraseAssignment(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Only exact phrase assignments.
|
DocumentAssignerDescriptor.AttributeBuilder |
minClusterSize(int value)
Determines the minimum number of documents in each cluster.
|
DocumentAssignerDescriptor.AttributeBuilder |
minClusterSize(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Determines the minimum number of documents in each cluster.
|
public DocumentAssignerDescriptor.AttributeBuilder exactPhraseAssignment(boolean value)
public DocumentAssignerDescriptor.AttributeBuilder exactPhraseAssignment(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
public DocumentAssignerDescriptor.AttributeBuilder minClusterSize(int value)
DocumentAssigner.minClusterSizepublic DocumentAssignerDescriptor.AttributeBuilder minClusterSize(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
DocumentAssigner.minClusterSize