gov.sandia.cognition.text.term.vector.weighter.local
Interface LocalTermWeighter

All Superinterfaces:
Cloneable, CloneableSerializable, Serializable
All Known Implementing Classes:
AbstractLocalTermWeighter, BinaryLocalTermWeighter, LogLocalTermWeighter, NormalizedLogLocalTermWeighter, TermFrequencyLocalTermWeighter

public interface LocalTermWeighter
extends CloneableSerializable

Defines the functionality of a local term weighting scheme. Takes in a vector representation of a document (usually containing counts) and returns a new, reweighted vector based on that vector based only on the information in the document.

Since:
3.0
Author:
Justin Basilico

Method Summary
 Vector computeLocalWeights(Vector document)
          Computes the new local weights for a given document.
 Vector computeLocalWeights(Vectorizable document)
          Computes the new local weights for a given document.
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Method Detail

computeLocalWeights

Vector computeLocalWeights(Vectorizable document)
Computes the new local weights for a given document.

Parameters:
document - The document to compute local weights for.
Returns:
The local weight vector for the documents.

computeLocalWeights

Vector computeLocalWeights(Vector document)
Computes the new local weights for a given document.

Parameters:
document - The document to compute local weights for.
Returns:
The local weight vector for the documents.