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 ofStopwordFilterDictionary
andLabelFilterDictionary
interfaces. Provides support for exact string matching, globs (wildcard expressions) and regular expression (Pattern
) matching.
-
-
Field Summary
Fields Modifier and Type Field Description AttrStringArray
exact
AttrStringArray
glob
AttrStringArray
regexp
-
Fields inherited from class org.carrot2.attrs.AttrComposite
attributes
-
-
Constructor Summary
Constructors Constructor Description DefaultDictionaryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelFilter
compileLabelFilter()
StopwordFilter
compileStopwordFilter()
-
Methods 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 Detail
-
exact
public AttrStringArray exact
-
glob
public AttrStringArray glob
-
regexp
public AttrStringArray regexp
-
-
Method Detail
-
compileStopwordFilter
public StopwordFilter compileStopwordFilter()
- Specified by:
compileStopwordFilter
in interfaceStopwordFilterDictionary
-
compileLabelFilter
public LabelFilter compileLabelFilter()
- Specified by:
compileLabelFilter
in interfaceLabelFilterDictionary
-
-