public class BasisMaker extends GenericMain
BasisMapping
based on the unique terms found in a
document set and serializes it to disk.Modifier and Type | Class and Description |
---|---|
class |
BasisMaker.OccurrenceCounter
A simple term
SemanticSpace implementation that counts word
co-occurrences, performs a transform, and then scores each recorded basis
dimension based on the row summed scores for each word. |
argOptions, EXT, isMultiThreaded, verbose
Constructor and Description |
---|
BasisMaker() |
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 SemanticSpace |
getSpace()
Returns the
SemanticSpace that will be used for processing. |
protected void |
saveSSpace(SemanticSpace sspace,
File outputFile)
Saves the
BasisMapping created from the BasisMaker.OccurrenceCounter . |
addCorpusReaderIterators, addDocIterators, addFileIterators, getAlgorithmSpecifics, getDocumentIterator, getSpaceFormat, handleExtraOptions, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, postProcessing, processDocumentsAndSpace, run, setupOptions, setupProperties, usage, verbose, verbose
protected 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()
protected 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 void saveSSpace(SemanticSpace sspace, File outputFile) throws IOException
BasisMapping
created from the BasisMaker.OccurrenceCounter
.saveSSpace
in class GenericMain
IOException
Copyright © 2012. All Rights Reserved.