org.carrot2.text.vsm
Interface ITermWeighting

All Known Implementing Classes:
LinearTfIdfTermWeighting, LogTfIdfTermWeighting, TfTermWeighting

public interface ITermWeighting

Calculates term weights for the term-document matrix.

See Also:
TermDocumentMatrixBuilder

Method Summary
 double calculateTermWeight(int termFrequency, int documentFrequency, int documentCount)
          Calculates the weight of a term for a single document.
 

Method Detail

calculateTermWeight

double calculateTermWeight(int termFrequency,
                           int documentFrequency,
                           int documentCount)
Calculates the weight of a term for a single document.

Parameters:
termFrequency - frequency of the term in the document
documentFrequency - the number of documents containing the term
documentCount - total number of documents


Copyright (c) Dawid Weiss, Stanislaw Osinski