public class ReflectiveRandomIndexingMain extends GenericMain
ReflectiveRandomIndexing
from the
command line.
An invocation will produce one file as output reflective-random-indexing.sspace
. If overwrite
was set to true
, this file will be replaced for each new semantic space. Otherwise, a
new output file of the format reflective-random-indexing<number>.sspace
will be created, where <number>
is a unique identifier for that program's invocation. The output
file will be placed in the directory specified on the command line.
This class is desgined to run multi-threaded and performs well with one thread per core, which is the default setting.
ReflectiveRandomIndexing
argOptions, EXT, isMultiThreaded, verbose
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraOptions(ArgOptions options)
Adds all of the options to the
ArgOptions . |
protected SemanticSpace |
getSpace()
Returns an instance of
ReflectiveRandomIndexing . |
protected SemanticSpaceIO.SSpaceFormat |
getSpaceFormat()
Returns the format as
the default format of a
ReflectiveRandomIndexing space. |
static void |
main(String[] args) |
protected Properties |
setupProperties()
Returns the
Properties object that will be used when calling
SemanticSpace.processSpace(Properties) . |
addCorpusReaderIterators, addDocIterators, addFileIterators, getAlgorithmSpecifics, getDocumentIterator, handleExtraOptions, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, postProcessing, processDocumentsAndSpace, run, saveSSpace, setupOptions, usage, verbose, verbose
protected void addExtraOptions(ArgOptions options)
ArgOptions
.addExtraOptions
in class GenericMain
options
- the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()
public static void main(String[] args)
protected Properties setupProperties()
Properties
object that will be used when calling
SemanticSpace.processSpace(Properties)
. Subclasses should
override this method if they need to specify additional properties for
the space. This method will be called once before GenericMain.getSpace()
.setupProperties
in class GenericMain
Properties
used for processing the semantic space.protected SemanticSpace getSpace()
ReflectiveRandomIndexing
. If loadVectors
is
specified in the command line options, this method will also initialize
the word-to-TernaryVector
mapping.getSpace
in class GenericMain
protected SemanticSpaceIO.SSpaceFormat getSpaceFormat()
ReflectiveRandomIndexing
space.getSpaceFormat
in class GenericMain
Copyright © 2012. All Rights Reserved.