org.carrot2.text.preprocessing
Class PhraseExtractorDescriptor.AttributeBuilder

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

public static class PhraseExtractorDescriptor.AttributeBuilder
extends Object

Attribute map builder for the PhraseExtractor 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 PhraseExtractorDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 PhraseExtractorDescriptor.AttributeBuilder dfThreshold(int value)
          Phrase Document Frequency threshold.
 
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

PhraseExtractorDescriptor.AttributeBuilder

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

Method Detail

dfThreshold

public PhraseExtractorDescriptor.AttributeBuilder dfThreshold(int value)
Phrase Document Frequency threshold. Phrases appearing in fewer than dfThreshold documents will be ignored.

See Also:
PhraseExtractor.dfThreshold


Copyright (c) Dawid Weiss, Stanislaw Osinski