org.carrot2.text.preprocessing.filter
Class NumericLabelFilterDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.text.preprocessing.filter.NumericLabelFilterDescriptor.AttributeBuilder
Enclosing class:
NumericLabelFilterDescriptor

public static class NumericLabelFilterDescriptor.AttributeBuilder
extends Object

Attribute map builder for the NumericLabelFilter 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 NumericLabelFilterDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 NumericLabelFilterDescriptor.AttributeBuilder enabled(boolean value)
          Remove numeric labels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public final Map<String,Object> map
The attribute map populated by this builder.

Constructor Detail

NumericLabelFilterDescriptor.AttributeBuilder

protected NumericLabelFilterDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.

Method Detail

enabled

public NumericLabelFilterDescriptor.AttributeBuilder enabled(boolean value)
Remove numeric labels. Remove labels that consist only of or start with numbers.

See Also:
NumericLabelFilter.enabled


Copyright (c) Dawid Weiss, Stanislaw Osinski