Package org.carrot2.text.vsm
Class TermDocumentMatrixReducer
java.lang.Object
org.carrot2.attrs.AttrComposite
org.carrot2.text.vsm.TermDocumentMatrixReducer
- All Implemented Interfaces:
AcceptingVisitor
public class TermDocumentMatrixReducer extends AttrComposite
Reduces the dimensionality of a term-document matrix using a matrix factorization algorithm.
-
Field Summary
Fields Modifier and Type Field Description MatrixFactorizationFactory
factorizationFactory
Factorization method. -
Constructor Summary
Constructors Constructor Description TermDocumentMatrixReducer()
-
Method Summary
Modifier and Type Method Description void
reduce(ReducedVectorSpaceModelContext context, int dimensions)
Performs the reduction.
-
Field Details
-
factorizationFactory
Factorization method. The method to be used to factorize the term-document matrix and create base vectors that will give rise to cluster labels.
-
-
Constructor Details
-
TermDocumentMatrixReducer
public TermDocumentMatrixReducer()
-
-
Method Details
-
reduce
Performs the reduction.
-