public static class LexSubWordsiMain.LexSubWordsi extends Object implements Wordsi
| Constructor and Description |
|---|
LexSubWordsiMain.LexSubWordsi(String outFile,
String sspaceFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptWord(String focus)
Returns true if this
Wordsi implementation should generate a
semantic vector for word. |
String |
getBaseSense(String focus,
SparseDoubleVector vector) |
void |
handleContextVector(String focus,
String secondary,
SparseDoubleVector vector)
Performs some operation with
contextVector, which can be indexed
by either primaryKey, secondaryKey, or both. |
public boolean acceptWord(String focus)
WordsiWordsi implementation should generate a
semantic vector for word.acceptWord in interface Wordsipublic void handleContextVector(String focus, String secondary, SparseDoubleVector vector)
WordsicontextVector, which can be indexed
by either primaryKey, secondaryKey, or both. This
operation will likely assign the contextVector to some cluster
immediately or store the contextVector so that it may be
clustered with all other other context vecetors generated for primaryKey.
The secondaryKey does not need to be used, but some experiments
may require it, such as the SenseEval/SemEval evaluation or pseudo-word
disambiguation. For SenseEval/SemEval evaluations, a SenseEvalContextExtractor should be used, which will provide the context
id as the secondaryKey; reporting should be done with a SenseEvalReporter. For pseudo-word disambiguation/discrimination, a
PseudoWordContextExtractor should be used, which will create
pseudo-words for some set of tokens. This extractor will use the
pseudo-word for the primaryKey and the original token as the
secondaryKey.handleContextVector in interface Wordsifocus - The primary key for contextVectorvector - a SparseDoubleVector that represents a
single context for a wordpublic String getBaseSense(String focus, SparseDoubleVector vector)
Copyright © 2012. All Rights Reserved.