Interface LabelAssigner

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void assignLabels​(LingoProcessingContext context, org.carrot2.math.mahout.matrix.DoubleMatrix2D stemCos, com.carrotsearch.hppc.IntIntHashMap filteredRowToStemIndex, org.carrot2.math.mahout.matrix.DoubleMatrix2D phraseCos)
      Assigns labels to base vectors found by the matrix factorization.
    • Method Detail

      • assignLabels

        void assignLabels​(LingoProcessingContext context,
                          org.carrot2.math.mahout.matrix.DoubleMatrix2D stemCos,
                          com.carrotsearch.hppc.IntIntHashMap filteredRowToStemIndex,
                          org.carrot2.math.mahout.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