public class CoalsMain extends GenericMain
Coals
from the
command line. This class takes in several command line arguments.
--dimensions=<int>
how many dimensions to use for the regular
word vectors. See Coals
for a default value
--reduce
If present, the word-word matrix will be reduced using
Singular Valued Decomposition otherwise no reduction will be performed.
Coals
for a default value.
An invocation will produce one file as output where the file name will mark the number of words kept in the word-word matrix, and wether or not SVD was used.
Coals
argOptions, EXT, isMultiThreaded, verbose
Modifier and Type | Method and Description |
---|---|
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) |
addCorpusReaderIterators, addDocIterators, addFileIterators, getAlgorithmSpecifics, getDocumentIterator, handleExtraOptions, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, postProcessing, processDocumentsAndSpace, run, saveSSpace, setupOptions, setupProperties, usage, verbose, verbose
public 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 GenericMain
options
- the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()
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 GenericMain
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.