public abstract class DependencyGenericMain extends GenericMain
GenericMain
by overing the getDocumentIterator
function such that it generates document iterators for
dependency parse trees.argOptions, EXT, isMultiThreaded, verbose
Constructor and Description |
---|
DependencyGenericMain() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDocIterators(Collection<Iterator<Document>> docIters,
String[] fileNames)
Adds a
DependencyFileDocumentIterator to docIters for
each file name provided. |
void |
addExtraOptions(ArgOptions options)
Adds options to the provided
ArgOptions instance, which will be
used to parse the command line. |
protected void |
addFileIterators(Collection<Iterator<Document>> docIters,
String[] fileNames)
Throws
UnsupportedOperationException . |
protected void |
setupDependencyExtractor()
Links the desired
DependencyExtractor with the DependencyExtractorManager , creating the DependencyExtractor
with optional configuration file, if it is not null , and any
TokenFilter s or Stemmer s that have been specified by the
command line. |
protected void |
usage()
Prints out information on how to run the program to
stdout using
the option descriptions for compound words, tokenization, .sspace formats
and help. |
addCorpusReaderIterators, getAlgorithmSpecifics, getDocumentIterator, getSpace, getSpaceFormat, handleExtraOptions, loadValidTermSet, parseDocumentsMultiThreaded, parseDocumentsSingleThreaded, postProcessing, processDocumentsAndSpace, run, saveSSpace, setupOptions, setupProperties, 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()
protected void setupDependencyExtractor()
DependencyExtractor
with the DependencyExtractorManager
, creating the DependencyExtractor
with optional configuration file, if it is not null
, and any
TokenFilter
s or Stemmer
s that have been specified by the
command line.protected void addFileIterators(Collection<Iterator<Document>> docIters, String[] fileNames) throws IOException
UnsupportedOperationException
.addFileIterators
in class GenericMain
IOException
protected void addDocIterators(Collection<Iterator<Document>> docIters, String[] fileNames) throws IOException
DependencyFileDocumentIterator
to docIters
for
each file name provided.addDocIterators
in class GenericMain
IOException
protected void usage()
stdout
using
the option descriptions for compound words, tokenization, .sspace formats
and help.usage
in class GenericMain
Copyright © 2012. All Rights Reserved.