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

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

public static class GenitiveLabelFilterDescriptor.AttributeBuilder
extends Object

Attribute map builder for the GenitiveLabelFilter 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 GenitiveLabelFilterDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 GenitiveLabelFilterDescriptor.AttributeBuilder enabled(boolean value)
          Remove labels ending in genitive form.
 
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

GenitiveLabelFilterDescriptor.AttributeBuilder

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

Method Detail

enabled

public GenitiveLabelFilterDescriptor.AttributeBuilder enabled(boolean value)
Remove labels ending in genitive form. Removes labels that do end in words in the Saxon Genitive form (e.g. "Threatening the Country's").

See Also:
GenitiveLabelFilter.enabled


Copyright (c) Dawid Weiss, Stanislaw Osinski