public class DependencyRandomIndexingMain extends DependencyGenericMain
-l
, --vectorLength=INT
The size of the vectors
-s
, --windowSize=INT,INT
The number of words before,
and after the focus term to inspect
-P
, --userPermutations
Set if permutations should be
used
-p
, --permutationFunction
Set the DependencyPermutationFunction
that will be used.
-S
, --saveIndexes=FILE
Save index vectors and
permutation function to a binary file
-L
, --loadIndexes=FILE
Load index vectors and
permutation function from binary files
DependencyRandomIndexing
argOptions, EXT, isMultiThreaded, verbose
Constructor and Description |
---|
DependencyRandomIndexingMain()
Uninstantiable.
|
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. |
protected void |
handleExtraOptions()
Once the command line has been parsed, allows the subclasses to perform
additional steps based on class-specific options.
|
static void |
main(String[] args)
Begin processing with
FlyingHermit . |
protected void |
postProcessing()
Allows subclasses to interact with the
SemanticSpace after the
space has finished processing all of the text. |
addDocIterators, addFileIterators, setupDependencyExtractor, usage
addCorpusReaderIterators, getAlgorithmSpecifics, getDocumentIterator, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, processDocumentsAndSpace, run, saveSSpace, setupOptions, setupProperties, verbose, verbose
public DependencyRandomIndexingMain()
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 DependencyGenericMain
options
- the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()
protected void handleExtraOptions()
getSpace
.handleExtraOptions
in class GenericMain
GenericMain.addExtraOptions(ArgOptions)
protected void postProcessing()
SemanticSpace
after the
space has finished processing all of the text.postProcessing
in class GenericMain
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
public static void main(String[] args)
FlyingHermit
.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.