public interface ILabelAssigner
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.
|
void assignLabels(LingoProcessingContext context, DoubleMatrix2D stemCos, com.carrotsearch.hppc.IntIntHashMap filteredRowToStemIndex, DoubleMatrix2D phraseCos)
LingoProcessingContext.clusterLabelFeatureIndex
and
LingoProcessingContext.clusterLabelScore
arrays.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