org.carrot2.clustering.lingo
Interface ILabelAssigner

All Known Implementing Classes:
SimpleLabelAssigner, UniqueLabelAssigner

public interface ILabelAssigner

Assigns labels to base vectors obtained from the factorization.


Method Summary
 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.
 

Method Detail

assignLabels

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. The results must be stored in the LingoProcessingContext.clusterLabelFeatureIndex and LingoProcessingContext.clusterLabelScore arrays.

Parameters:
context - contains all information about the current clustering request
stemCos - base vector -- single stems cosine matrix
filteredRowToStemIndex - mapping between row indices of stemCos and indices of stems in PreprocessingContext.allStems
phraseCos - base vector -- phrase cosine matrix


Copyright (c) Dawid Weiss, Stanislaw Osinski