|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.text.linguistic.DefaultLexicalDataFactoryDescriptor.AttributeBuilder
public static class DefaultLexicalDataFactoryDescriptor.AttributeBuilder
Attribute map builder for the DefaultLexicalDataFactory component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.
| Field Summary | |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder. |
| Constructor Summary | |
|---|---|
protected |
DefaultLexicalDataFactoryDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map. |
| Method Summary | |
|---|---|
DefaultLexicalDataFactoryDescriptor.AttributeBuilder |
mergeResources(boolean value)
Merges stop words and stop labels from all known languages. |
DefaultLexicalDataFactoryDescriptor.AttributeBuilder |
reloadResources(boolean value)
|
DefaultLexicalDataFactoryDescriptor.AttributeBuilder |
resourceLookup(Class<? extends ResourceLookup> clazz)
|
DefaultLexicalDataFactoryDescriptor.AttributeBuilder |
resourceLookup(ResourceLookup value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Map<String,Object> map
| Constructor Detail |
|---|
protected DefaultLexicalDataFactoryDescriptor.AttributeBuilder(Map<String,Object> map)
| Method Detail |
|---|
public DefaultLexicalDataFactoryDescriptor.AttributeBuilder reloadResources(boolean value)
DefaultLexicalDataFactory.reloadResourcespublic 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.
DefaultLexicalDataFactory.mergeResourcespublic DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(ResourceLookup value)
DefaultLexicalDataFactory.resourceLookuppublic DefaultLexicalDataFactoryDescriptor.AttributeBuilder resourceLookup(Class<? extends ResourceLookup> clazz)
DefaultLexicalDataFactory.resourceLookup
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||