public class WCWordsiMain extends GenericWordsiMain
Wordsi with a WordOccrrenceContextGenerator. The core command line arguments are provided
by GenericWordsiMain. This class takes in the following additional
arguments:
-W, --weightingFunction=CLASSNAME Specifies the
class that will weight co-occurrences based on the window distances.
(Default: LinearWeighting
--Save option, this class will save a BasisMapping from strings to feature indices. When using the --Load
option, this class will load a mapping from strings to feature indices from
disk. This mapping must be a BasisMapping. If --Save is not
used, a new BasisMapping will be used.GenericWordsiMain,
WordOccrrenceContextGeneratorargOptions, EXT, isMultiThreaded, verbose| Constructor and Description |
|---|
WCWordsiMain() |
| 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. |
protected ContextExtractor |
getExtractor()
Returns a
ContextExtractor, which will be responsible for
creating context vectors for documents. |
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) |
protected void |
postProcessing()
Saves the
basis to disk. |
contextExtractorFromGenerator, getAcceptedWords, getDocumentIterator, getPseudoWordMap, getSpace, loadObject, openLoadFile, openSaveFile, saveObject, windowSizeaddCorpusReaderIterators, addDocIterators, addFileIterators, getAlgorithmSpecifics, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, processDocumentsAndSpace, run, saveSSpace, setupOptions, setupProperties, 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 GenericWordsiMainoptions - the ArgOptions object which more main specific options can
be added to.GenericMain.handleExtraOptions()protected void handleExtraOptions()
getSpace.handleExtraOptions in class GenericMainGenericMain.addExtraOptions(ArgOptions)protected void postProcessing()
basis to disk.postProcessing in class GenericMainprotected ContextExtractor getExtractor()
ContextExtractor, which will be responsible for
creating context vectors for documents.getExtractor in class GenericWordsiMainprotected 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 GenericMainCopyright © 2012. All Rights Reserved.