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 |
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 LanguageCode
s 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.DefaultLexicalDataFactory.mergeResources
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 LanguageCode
s 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.DefaultLexicalDataFactory.mergeResources
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(ResourceLookup value)
DefaultLexicalDataFactory.resourceLookup
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(Class<?> clazz)
DefaultLexicalDataFactory.resourceLookup
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(org.carrot2.util.attribute.IObjectFactory<? extends ResourceLookup> value)
DefaultLexicalDataFactory.resourceLookup