public class PurandareMain extends GenericMain
PurandareFirstOrder
from the command
line. See the Purandare and Pedersen
wiki page for details on running this class from the command line. This class is desgined to run multi-threaded and performs well with one thread per core, which is the default setting.
PurandareFirstOrder
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 the
SemanticSpace that will be used for processing. |
protected SemanticSpaceIO.SSpaceFormat |
getSpaceFormat()
Returns the
sparse_binary format as
the default format of a PurandareFirstOrder 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 SemanticSpace getSpace()
SemanticSpace
that will be used for processing. This
method is guaranteed to be called after the command line arguments have
been parsed, so the contents of GenericMain.argOptions
are valid.getSpace
in class GenericMain
protected SemanticSpaceIO.SSpaceFormat getSpaceFormat()
sparse_binary
format as
the default format of a PurandareFirstOrder
space.getSpaceFormat
in class GenericMain
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.Copyright © 2012. All Rights Reserved.