@PublicationReference(author="Wikipedia", title="tf-idf", type=WebPage, url="http://en.wikipedia.org/wiki/tf-idf", year=2009) public class TermFrequencyLocalTermWeighter extends AbstractLocalTermWeighter
vectorFactory| Constructor and Description |
|---|
TermFrequencyLocalTermWeighter()
Creates a new
TermFrequencyLocalTermWeighter. |
TermFrequencyLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
Creates a new
LogLocalTermWeighter. |
| Modifier and Type | Method and Description |
|---|---|
Vector |
computeLocalWeights(Vector counts)
Computes the new local weights for a given document.
|
computeLocalWeightsgetVectorFactory, setVectorFactorycloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic TermFrequencyLocalTermWeighter()
TermFrequencyLocalTermWeighter.public TermFrequencyLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
LogLocalTermWeighter.vectorFactory - The vector factory to use.public Vector computeLocalWeights(Vector counts)
LocalTermWeightercounts - The document to compute local weights for.