public class RIWordsiMain extends GenericWordsiMain
Wordsi
with a RandomIndexingContextGenerator
.
The core command line arguments are provided by GenericWordsiMain
.
This class takes in the following additional arguments:
-l
, --indexVectorLength=INT
Specifies the length of
index vectors
-p
, --permFunction=CLASSNAME
Specifies the
permutation function to apply on index vectors. (Default: none).
--Save
option, this class will save a mapping from
strings to TernaryVector
s. When using the --Load
option,
this class will load a mapping from strings to TernaryVector
s from
disk. This mapping may be a GeneratorMap
or it may be a fixed Map
. If --Save
is not used, a GeneratorMap
will be used for
creating TernaryVector
s.GenericWordsiMain
,
RandomIndexingContextGenerator
argOptions, EXT, isMultiThreaded, verbose
Constructor and Description |
---|
RIWordsiMain() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraOptions(ArgOptions options)
Adds options to the provided
ArgOptions instance, which will be
used to parse the command line. |
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 index map to disk.
|
contextExtractorFromGenerator, getAcceptedWords, getDocumentIterator, getPseudoWordMap, getSpace, loadObject, openLoadFile, openSaveFile, saveObject, windowSize
addCorpusReaderIterators, addDocIterators, addFileIterators, getAlgorithmSpecifics, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, processDocumentsAndSpace, run, saveSSpace, setupOptions, setupProperties, usage, verbose, verbose
protected void addExtraOptions(ArgOptions options)
ArgOptions
instance, which will be
used to parse the command line. This method allows subclasses the
ability to add extra command line options..addExtraOptions
in class GenericWordsiMain
options
- the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()
protected void handleExtraOptions()
getSpace
..handleExtraOptions
in class GenericMain
GenericMain.addExtraOptions(ArgOptions)
protected void postProcessing()
postProcessing
in class GenericMain
protected ContextExtractor getExtractor()
ContextExtractor
, which will be responsible for
creating context vectors for documents.getExtractor
in class GenericWordsiMain
protected 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 GenericMain
Copyright © 2012. All Rights Reserved.