public class BinaryLocalTermWeighter extends AbstractLocalTermWeighter
vectorFactory
Constructor and Description |
---|
BinaryLocalTermWeighter()
Creates a new
BinaryLocalTermWeighter . |
BinaryLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
Creates a new
BinaryLocalTermWeighter . |
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 BinaryLocalTermWeighter()
BinaryLocalTermWeighter
.public BinaryLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
BinaryLocalTermWeighter
.vectorFactory
- The vector factory to use.public Vector computeLocalWeights(Vector counts)
LocalTermWeighter
counts
- The document to compute local weights for.