|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for classes that can create vectors for documents.
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 |
public void setDictionary(TermVector dict)
public TermVector getVector(Document d)
public void setLinearlyScale(boolean scale)
public void setNormalize(boolean normanlize)
public void setMaxSize(int n)
n
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |