gov.sandia.cognition.text.term.vector.weighter.global
Interface GlobalTermWeighter

All Superinterfaces:
VectorSpaceModel
All Known Implementing Classes:
AbstractEntropyBasedGlobalTermWeighter, AbstractFrequencyBasedGlobalTermWeighter, AbstractGlobalTermWeighter, DominanceGlobalTermWeighter, EntropyGlobalTermWeighter, InverseDocumentFrequencyGlobalTermWeighter

public interface GlobalTermWeighter
extends VectorSpaceModel

Implements a global term weighting scheme. It contains weights for each term. Typically, these are combined with a local weighting scheme by a CompositeLocalGlobalTermWeighter.

Since:
3.0
Author:
Justin Basilico
See Also:
CompositeLocalGlobalTermWeighter

Method Summary
 int getDimensionality()
          Gets the dimensionality of the global weights.
 Vector getGlobalWeights()
          Gets the current vector of global weights.
 
Methods inherited from interface gov.sandia.cognition.text.term.vector.VectorSpaceModel
add, add, addAll, getDocumentCount, remove, remove, removeAll
 

Method Detail

getDimensionality

int getDimensionality()
Gets the dimensionality of the global weights.

Returns:
The dimensionality of the global weights. -1 if unknown.

getGlobalWeights

Vector getGlobalWeights()
Gets the current vector of global weights.

Returns:
The global weights.