public static class DefaultLexicalDataFactoryDescriptor.AttributeBuilder extends Object
DefaultLexicalDataFactory 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 |
DefaultLexicalDataFactoryDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder reloadResources(boolean value)
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder reloadResources(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder mergeResources(boolean value)
false, only stop words and stop labels of the active language will be
used. If set to true, stop words from all LanguageCodes will
be used together and stop labels from all languages will be used together, no
matter the active language. Lexical resource merging is useful when clustering data
in a mix of different languages and should increase clustering quality in such
settings.public DefaultLexicalDataFactoryDescriptor.AttributeBuilder mergeResources(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
false, only stop words and stop labels of the active language will be
used. If set to true, stop words from all LanguageCodes will
be used together and stop labels from all languages will be used together, no
matter the active language. Lexical resource merging is useful when clustering data
in a mix of different languages and should increase clustering quality in such
settings.public DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(ResourceLookup value)
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(Class<?> clazz)
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(org.carrot2.util.attribute.IObjectFactory<? extends ResourceLookup> value)