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
TokenFilters or Stemmers 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, verbosepublic 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 GenericMainoptions - 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
TokenFilters or Stemmers that have been specified by the
command line.protected void addFileIterators(Collection<Iterator<Document>> docIters, String[] fileNames) throws IOException
UnsupportedOperationException.addFileIterators in class GenericMainIOExceptionprotected void addDocIterators(Collection<Iterator<Document>> docIters, String[] fileNames) throws IOException
DependencyFileDocumentIterator to docIters for
each file name provided.addDocIterators in class GenericMainIOExceptionprotected void usage()
stdout using
the option descriptions for compound words, tokenization, .sspace formats
and help.usage in class GenericMainCopyright © 2012. All Rights Reserved.