Package org.carrot2.language
Class EphemeralDictionaries
java.lang.Object
org.carrot2.attrs.AttrComposite
org.carrot2.language.EphemeralDictionaries
- All Implemented Interfaces:
AcceptingVisitor
Ephemeral per-request overrides for the default
LanguageComponents
passed to the
algorithm.- Since:
- 4.1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionAdditional label filtering dictionaries (supplying cluster label filters that should be discarded from the output).Additional stop word filtering dictionaries (supplying word filters that should be discarded from the input).Fields inherited from class org.carrot2.attrs.AttrComposite
attributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoverride
(LanguageComponents languageComponents) Override components of the existingLanguageComponents
instance with this object's dictionaries.Methods inherited from class org.carrot2.attrs.AttrComposite
accept
-
Field Details
-
wordFilters
Additional stop word filtering dictionaries (supplying word filters that should be discarded from the input).One or more dictionaries can be supplied. The default implementation in
DefaultDictionaryImpl
supports exact string matching and regular expression patterns.REST-style example using the default implementation:
"wordFilters": [{ "exact": ["word1", "word2"], "regexp": [ "(?).+pattern1.+", "(?).+[0-9]{2}.+" ] }]
- See Also:
-
labelFilters
Additional label filtering dictionaries (supplying cluster label filters that should be discarded from the output).One or more dictionaries can be supplied. The default implementation in
DefaultDictionaryImpl
supports exact string matching and regular expression patterns.REST-style example using the default implementation:
"labelFilters": [{ "exact": ["Cluster Label 1", "Foo Bar"], "regexp": [ "(?).+pattern1.+", "(?).+[0-9]{2}.+" ] }]
- See Also:
-
-
Constructor Details
-
EphemeralDictionaries
public EphemeralDictionaries()
-
-
Method Details
-
override
Override components of the existingLanguageComponents
instance with this object's dictionaries.
-