Interface LabelAssigner

All Superinterfaces:
AcceptingVisitor
All Known Implementing Classes:
SimpleLabelAssigner, UniqueLabelAssigner

public interface LabelAssigner extends AcceptingVisitor
Assigns labels to base vectors obtained from the factorization.
  • Method Summary

    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.

    Methods inherited from interface org.carrot2.attrs.AcceptingVisitor

    accept
  • Method Details

    • 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