Class EphemeralDictionaries

java.lang.Object
org.carrot2.attrs.AttrComposite
org.carrot2.language.EphemeralDictionaries
All Implemented Interfaces:
AcceptingVisitor

public class EphemeralDictionaries extends AttrComposite
Ephemeral per-request overrides for the default LanguageComponents passed to the algorithm.
Since:
4.1.0
See Also:
  • 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

      public AttrObjectArray<LabelFilterDictionary> 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