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.-
Fields inherited from class org.carrot2.attrs.AttrComposite
attributes
-
-
Constructor Summary
Constructors Constructor Description TermDocumentMatrixReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reduce(ReducedVectorSpaceModelContext context, int dimensions)
Performs the reduction.-
Methods inherited from class org.carrot2.attrs.AttrComposite
accept
-
-
-
-
Field Detail
-
factorizationFactory
public MatrixFactorizationFactory 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.
-
-
Method Detail
-
reduce
public void reduce(ReducedVectorSpaceModelContext context, int dimensions)
Performs the reduction.
-
-