@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.
|
computeLocalWeights
getVectorFactory, setVectorFactory
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public TermFrequencyLocalTermWeighter()
TermFrequencyLocalTermWeighter
.public TermFrequencyLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
LogLocalTermWeighter
.vectorFactory
- The vector factory to use.public Vector computeLocalWeights(Vector counts)
LocalTermWeighter
counts
- The document to compute local weights for.