@Bindable public class SimpleLabelAssigner extends Object implements ILabelAssigner
UniqueLabelAssigner
Constructor and Description |
---|
SimpleLabelAssigner() |
Modifier and Type | Method and Description |
---|---|
void |
assignLabels(LingoProcessingContext context,
DoubleMatrix2D stemCos,
com.carrotsearch.hppc.IntIntHashMap filteredRowToStemIndex,
DoubleMatrix2D phraseCos)
Assigns labels to base vectors found by the matrix factorization.
|
public void assignLabels(LingoProcessingContext context, DoubleMatrix2D stemCos, com.carrotsearch.hppc.IntIntHashMap filteredRowToStemIndex, DoubleMatrix2D phraseCos)
ILabelAssigner
LingoProcessingContext.clusterLabelFeatureIndex
and
LingoProcessingContext.clusterLabelScore
arrays.assignLabels
in interface ILabelAssigner
context
- 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.allStems
phraseCos
- base vector -- phrase cosine matrix