public static class LexicalDataLoaderDescriptor.AttributeBuilder extends Object
LexicalDataLoader
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 |
---|---|
LexicalDataLoaderDescriptor.AttributeBuilder |
reloadResources(boolean value)
Reloads cached stop words and stop labels on every processing request.
|
LexicalDataLoaderDescriptor.AttributeBuilder |
reloadResources(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Reloads cached stop words and stop labels on every processing request.
|
LexicalDataLoaderDescriptor.AttributeBuilder |
resourceLookup(Class<?> clazz)
Lexical resource lookup facade.
|
LexicalDataLoaderDescriptor.AttributeBuilder |
resourceLookup(org.carrot2.util.attribute.IObjectFactory<? extends ResourceLookup> value)
Lexical resource lookup facade.
|
LexicalDataLoaderDescriptor.AttributeBuilder |
resourceLookup(ResourceLookup value)
Lexical resource lookup facade.
|
public LexicalDataLoaderDescriptor.AttributeBuilder reloadResources(boolean value)
This flag is reset to false
after successful resource reload to prevent
multiple resource reloads during the same processing cycle.
LexicalDataLoader.reloadResources
public LexicalDataLoaderDescriptor.AttributeBuilder reloadResources(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
This flag is reset to false
after successful resource reload to prevent
multiple resource reloads during the same processing cycle.
LexicalDataLoader.reloadResources
public LexicalDataLoaderDescriptor.AttributeBuilder resourceLookup(ResourceLookup value)
LexicalDataLoader.resourceLookup
public LexicalDataLoaderDescriptor.AttributeBuilder resourceLookup(Class<?> clazz)
LexicalDataLoader.resourceLookup
public LexicalDataLoaderDescriptor.AttributeBuilder resourceLookup(org.carrot2.util.attribute.IObjectFactory<? extends ResourceLookup> value)
LexicalDataLoader.resourceLookup