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

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

public static class MinLengthLabelFilterDescriptor.AttributeBuilder
extends Object

Attribute map builder for the MinLengthLabelFilter 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 MinLengthLabelFilterDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 MinLengthLabelFilterDescriptor.AttributeBuilder enabled(boolean value)
          Remove labels shorter than 3 characters.
 
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

MinLengthLabelFilterDescriptor.AttributeBuilder

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

Method Detail

enabled

public MinLengthLabelFilterDescriptor.AttributeBuilder enabled(boolean value)
Remove labels shorter than 3 characters. Removes labels whose total length in characters, including spaces, is less than 3.

See Also:
MinLengthLabelFilter.enabled


Copyright (c) Dawid Weiss, Stanislaw Osinski