public class LpsaMain extends GenericMain
LocalityPreservingSemanticAnalysis
(LPSA) from the command line.
An invocation will produce one file as output lpsa-semantic-space.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 lpsa-semantic-space<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.
LocalityPreservingSemanticAnalysis,
TransformargOptions, EXT, isMultiThreaded, verbose| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraOptions(ArgOptions options)
Adds all of the options to the
ArgOptions. |
protected String |
getAlgorithmSpecifics()
Returns a string describing algorithm-specific options and behaviods.
|
protected SemanticSpace |
getSpace()
Returns the
SemanticSpace that will be used for processing. |
protected SemanticSpaceIO.SSpaceFormat |
getSpaceFormat()
Returns the format as the default
format of a
LocalityPreservingSemanticAnalysis 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, getDocumentIterator, handleExtraOptions, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, postProcessing, processDocumentsAndSpace, run, saveSSpace, setupOptions, usage, verbose, verboseprotected void addExtraOptions(ArgOptions options)
ArgOptions.addExtraOptions in class GenericMainoptions - the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()public static void main(String[] args)
protected SemanticSpace getSpace()
GenericMainSemanticSpace 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 GenericMainprotected SemanticSpaceIO.SSpaceFormat getSpaceFormat()
LocalityPreservingSemanticAnalysis space.getSpaceFormat in class GenericMainprotected Properties setupProperties()
GenericMainProperties 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 GenericMainProperties used for processing the semantic space.protected String getAlgorithmSpecifics()
getAlgorithmSpecifics in class GenericMainCopyright © 2012. All Rights Reserved.