public class DummySemanticSpace extends Object implements SemanticSpace
SemanticSpace
, where all the semantic vectors must be
manually asssigned.Constructor and Description |
---|
DummySemanticSpace() |
Modifier and Type | Method and Description |
---|---|
String |
getSpaceName() |
Vector |
getVector(String word)
Returns the manually assigned vector for the word
|
int |
getVectorLength() |
Set<String> |
getWords() |
void |
processDocument(BufferedReader document)
Does nothing
|
void |
processSpace(Properties properties)
Does nothing
|
Vector |
setVector(String word,
Vector vector)
Sets the vector for the word
|
public void processDocument(BufferedReader document) throws IOException
processDocument
in interface SemanticSpace
IOException
public Set<String> getWords()
getWords
in interface SemanticSpace
public Vector getVector(String word)
getVector
in interface SemanticSpace
public int getVectorLength()
getVectorLength
in interface SemanticSpace
public void processSpace(Properties properties)
processSpace
in interface SemanticSpace
public String getSpaceName()
getSpaceName
in interface SemanticSpace
Copyright © 2012. All Rights Reserved.