iglu.ir
Interface VectorCreator

All Known Implementing Classes:
AbstractVectorCreator

public interface VectorCreator

An interface for classes that can create vectors for documents.

Since:
1.0
Version:
1.0
Author:
Travis Bauer, Ryan Scherle

Method Summary
 TermVector getVector(Document d)
          Get a vector for document d.
 void setDictionary(TermVector dict)
          Tell the system to only allow words contained in dict to appear in the vector for a document.
 void setLinearlyScale(boolean scale)
          Whether or not all returned vectors should be linearly scaled.
 void setMaxSize(int n)
          All returned vectors should be no longer than n
 void setNormalize(boolean normanlize)
          Whether or not all vectors should be normalized.
 

Method Detail

setDictionary

public void setDictionary(TermVector dict)
Tell the system to only allow words contained in dict to appear in the vector for a document.


getVector

public TermVector getVector(Document d)
Get a vector for document d.


setLinearlyScale

public void setLinearlyScale(boolean scale)
Whether or not all returned vectors should be linearly scaled.


setNormalize

public void setNormalize(boolean normanlize)
Whether or not all vectors should be normalized.


setMaxSize

public void setMaxSize(int n)
All returned vectors should be no longer than n