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, setVectorFactorycloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeLocalWeightsclonepublic AbstractLocalTermWeighter()
AbstractLocalTermWeighter.public AbstractLocalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
AbstractLocalTermWeighter.vectorFactory - The vector factory to use.public Vector computeLocalWeights(Vectorizable document)
LocalTermWeightercomputeLocalWeights in interface LocalTermWeighterdocument - The document to compute local weights for.