public class PreComputedWordsiMain extends GenericWordsiMain
Wordsi with a PreComputedContextExtractor. The core command line arguments are provided
by GenericWordsiMain.
When using the --Save option, this class will save a BasisMapping from strings to feature indices. When using the --Load
option, this class will load a mapping from strings to feature indices from
disk. This mapping must be a BasisMapping. If --Save is not
used, a new BasisMapping will be used.GenericWordsiMain,
PreComputedContextExtractorargOptions, EXT, isMultiThreaded, verbose| Constructor and Description |
|---|
PreComputedWordsiMain() |
| Modifier and Type | Method and Description |
|---|---|
protected ContextExtractor |
getExtractor()
Returns a
ContextExtractor, which will be responsible for
creating context vectors for documents. |
protected SemanticSpaceIO.SSpaceFormat |
getSpaceFormat()
Returns the
format in which the
finished SemanticSpace should be saved. |
protected void |
handleExtraOptions()
Once the command line has been parsed, allows the subclasses to perform
additional steps based on class-specific options.
|
static void |
main(String[] args) |
protected void |
postProcessing()
Saves the
basis to disk. |
addExtraOptions, contextExtractorFromGenerator, getAcceptedWords, getDocumentIterator, getPseudoWordMap, getSpace, loadObject, openLoadFile, openSaveFile, saveObject, windowSizeaddCorpusReaderIterators, addDocIterators, addFileIterators, getAlgorithmSpecifics, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, processDocumentsAndSpace, run, saveSSpace, setupOptions, setupProperties, usage, verbose, verboseprotected void handleExtraOptions()
getSpace.handleExtraOptions in class GenericMainGenericMain.addExtraOptions(ArgOptions)protected void postProcessing()
basis to disk.postProcessing in class GenericMainprotected ContextExtractor getExtractor()
ContextExtractor, which will be responsible for
creating context vectors for documents.getExtractor in class GenericWordsiMainprotected SemanticSpaceIO.SSpaceFormat getSpaceFormat()
format in which the
finished SemanticSpace should be saved. Subclasses should
override this function if they want to specify a specific format that is
most suited for their space, when one is not manually specified by the
user.getSpaceFormat in class GenericMainCopyright © 2012. All Rights Reserved.