Package org.carrot2.language
Class DefaultDictionaryImpl
java.lang.Object
org.carrot2.attrs.AttrComposite
org.carrot2.language.DefaultDictionaryImpl
- All Implemented Interfaces:
AcceptingVisitor
,LabelFilterDictionary
,StopwordFilterDictionary
public class DefaultDictionaryImpl
extends AttrComposite
implements StopwordFilterDictionary, LabelFilterDictionary
Default implementation of
StopwordFilterDictionary
and LabelFilterDictionary
interfaces. Provides support for exact string matching, globs (wildcard expressions) and regular
expression (Pattern
) matching.-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.carrot2.attrs.AttrComposite
attributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.carrot2.attrs.AttrComposite
accept
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.carrot2.attrs.AcceptingVisitor
accept
-
Field Details
-
exact
-
glob
-
regexp
-
-
Constructor Details
-
DefaultDictionaryImpl
public DefaultDictionaryImpl()
-
-
Method Details
-
compileStopwordFilter
- Specified by:
compileStopwordFilter
in interfaceStopwordFilterDictionary
-
compileLabelFilter
- Specified by:
compileLabelFilter
in interfaceLabelFilterDictionary
-