org.carrot2.text.vsm
Class TermDocumentMatrixReducerDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.text.vsm.TermDocumentMatrixReducerDescriptor.AttributeBuilder
Enclosing class:
TermDocumentMatrixReducerDescriptor

public static class TermDocumentMatrixReducerDescriptor.AttributeBuilder
extends Object

Attribute map builder for the TermDocumentMatrixReducer 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 TermDocumentMatrixReducerDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationFactory(Class<? extends IMatrixFactorizationFactory> clazz)
          Factorization method.
 TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationFactory(IMatrixFactorizationFactory value)
          Factorization method.
 TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationQuality(Class<? extends IterationNumberGuesser.FactorizationQuality> clazz)
          Factorization quality.
 TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationQuality(IterationNumberGuesser.FactorizationQuality value)
          Factorization quality.
 
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

TermDocumentMatrixReducerDescriptor.AttributeBuilder

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

Method Detail

factorizationFactory

public TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationFactory(IMatrixFactorizationFactory value)
Factorization method. The method to be used to factorize the term-document matrix and create base vectors that will give rise to cluster labels.

See Also:
TermDocumentMatrixReducer.factorizationFactory

factorizationFactory

public TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationFactory(Class<? extends IMatrixFactorizationFactory> clazz)
Factorization method. The method to be used to factorize the term-document matrix and create base vectors that will give rise to cluster labels.

See Also:
TermDocumentMatrixReducer.factorizationFactory

factorizationQuality

public TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationQuality(IterationNumberGuesser.FactorizationQuality value)
Factorization quality. The number of iterations of matrix factorization to perform. The higher the required quality, the more time-consuming clustering.

See Also:
TermDocumentMatrixReducer.factorizationQuality

factorizationQuality

public TermDocumentMatrixReducerDescriptor.AttributeBuilder factorizationQuality(Class<? extends IterationNumberGuesser.FactorizationQuality> clazz)
Factorization quality. The number of iterations of matrix factorization to perform. The higher the required quality, the more time-consuming clustering.

See Also:
TermDocumentMatrixReducer.factorizationQuality


Copyright (c) Dawid Weiss, Stanislaw Osinski