@Bindable public class UniqueLabelAssigner extends Object implements ILabelAssigner
SimpleLabelAssigner. This method is slightly slower than
SimpleLabelAssigner.| Constructor and Description |
|---|
UniqueLabelAssigner() |
| 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)
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