@Bindable public class SimpleLabelAssigner extends Object implements ILabelAssigner
UniqueLabelAssigner| Constructor and Description |
|---|
SimpleLabelAssigner() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignLabels(LingoProcessingContext context,
org.apache.mahout.math.matrix.DoubleMatrix2D stemCos,
com.carrotsearch.hppc.IntIntOpenHashMap filteredRowToStemIndex,
org.apache.mahout.math.matrix.DoubleMatrix2D phraseCos)
Assigns labels to base vectors found by the matrix factorization.
|
public void assignLabels(LingoProcessingContext context, org.apache.mahout.math.matrix.DoubleMatrix2D stemCos, com.carrotsearch.hppc.IntIntOpenHashMap filteredRowToStemIndex, org.apache.mahout.math.matrix.DoubleMatrix2D phraseCos)
ILabelAssignerLingoProcessingContext.clusterLabelFeatureIndex and
LingoProcessingContext.clusterLabelScore arrays.assignLabels in interface ILabelAssignercontext - contains all information about the current clustering requeststemCos - base vector -- single stems cosine matrixfilteredRowToStemIndex - mapping between row indices of stemCos and indices of
stems in PreprocessingContext.allStemsphraseCos - base vector -- phrase cosine matrix