gov.sandia.cognition.text.term.vector.weighter.global
Class AbstractGlobalTermWeighter

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.text.term.vector.AbstractVectorSpaceModel
          extended by gov.sandia.cognition.text.term.vector.weighter.global.AbstractGlobalTermWeighter
All Implemented Interfaces:
VectorFactoryContainer, VectorSpaceModel, GlobalTermWeighter, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
AbstractFrequencyBasedGlobalTermWeighter

public abstract class AbstractGlobalTermWeighter
extends AbstractVectorSpaceModel
implements GlobalTermWeighter, VectorFactoryContainer

An abstract implementation of the GlobalTermWeighter interface.

Since:
3.0
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
protected  VectorFactory<? extends Vector> vectorFactory
          The vector factory.
 
Constructor Summary
AbstractGlobalTermWeighter()
          Creates a new AbstractGlobalTermWeighter.
AbstractGlobalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
          Creates a new AbstractGlobalTermWeighter.
 
Method Summary
 VectorFactory<? extends Vector> getVectorFactory()
          Gets the vector factory.
 void setVectorFactory(VectorFactory<? extends Vector> vectorFactory)
          Sets the vector factory.
 
Methods inherited from class gov.sandia.cognition.text.term.vector.AbstractVectorSpaceModel
add, addAll, remove, removeAll
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.text.term.vector.weighter.global.GlobalTermWeighter
getDimensionality, getGlobalWeights
 
Methods inherited from interface gov.sandia.cognition.text.term.vector.VectorSpaceModel
add, add, addAll, getDocumentCount, remove, remove, removeAll
 

Field Detail

vectorFactory

protected VectorFactory<? extends Vector> vectorFactory
The vector factory.

Constructor Detail

AbstractGlobalTermWeighter

public AbstractGlobalTermWeighter()
Creates a new AbstractGlobalTermWeighter.


AbstractGlobalTermWeighter

public AbstractGlobalTermWeighter(VectorFactory<? extends Vector> vectorFactory)
Creates a new AbstractGlobalTermWeighter.

Parameters:
vectorFactory - The vector factory to use.
Method Detail

getVectorFactory

public VectorFactory<? extends Vector> getVectorFactory()
Gets the vector factory.

Specified by:
getVectorFactory in interface VectorFactoryContainer
Returns:
The vector factory.

setVectorFactory

public void setVectorFactory(VectorFactory<? extends Vector> vectorFactory)
Sets the vector factory.

Parameters:
vectorFactory - The vector factory.