public class ESAMain extends GenericMain
ExplicitSemanticAnalysis (ESA) from
the command line. This class takes in several command line arguments.
--overwrite=<boolean> specifies whether to overwrite the
existing output files. The default is true. If set to false, a unique integer is inserted into the file name.
--verbose | -v specifies whether to print runtime
information to standard out
ExplicitSemanticAnalysisargOptions, EXT, isMultiThreaded, verbose| 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. |
SemanticSpace |
getSpace()
Returns the
SemanticSpace that will be used for processing. |
protected SemanticSpaceIO.SSpaceFormat |
getSpaceFormat()
Returns the
format in which the
finished SemanticSpace should be saved. |
static void |
main(String[] args) |
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, verboseprotected 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 GenericMainoptions - the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()public static void main(String[] args)
public 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 GenericMainprotected 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 GenericMainpublic 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 GenericMainProperties used for processing the semantic space.Copyright © 2012. All Rights Reserved.