public abstract class AbstractLocalTermWeighter extends DefaultVectorFactoryContainer implements LocalTermWeighter
LocalTermWeighter
interface. Defaults
to a sparse vector factory.vectorFactory
Constructor and Description |
---|
AbstractLocalTermWeighter()
Creates a new
AbstractLocalTermWeighter . |
AbstractLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
Creates a new
AbstractLocalTermWeighter . |
Modifier and Type | Method and Description |
---|---|
Vector |
computeLocalWeights(Vectorizable document)
Computes the new local weights for a given document.
|
getVectorFactory, setVectorFactory
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeLocalWeights
clone
public AbstractLocalTermWeighter()
AbstractLocalTermWeighter
.public AbstractLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
AbstractLocalTermWeighter
.vectorFactory
- The vector factory to use.public Vector computeLocalWeights(Vectorizable document)
LocalTermWeighter
computeLocalWeights
in interface LocalTermWeighter
document
- The document to compute local weights for.