public class CLI extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BEAM_SIZE
Default beam size for decoding.
|
| Constructor and Description |
|---|
CLI()
Construct a CLI object with the three sub-parsers to manage the command
line parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(InputStream inputStream,
OutputStream outputStream)
Main entry point for annotation.
|
void |
crossValidate()
Main access to the cross validation.
|
void |
eval()
Main entry point for evaluation.
|
void |
loadEvalParameters()
Load the evaluation parameters of the CLI.
|
static void |
main(String[] args)
The main method.
|
void |
parseCLI(String[] args)
Parse the command interface parameters with the argParser.
|
void |
train()
Main entry point for training.
|
public static final int DEFAULT_BEAM_SIZE
public CLI()
public static void main(String[] args) throws IOException, org.jdom2.JDOMException
args - the argumentsIOException - the input output exception if not file is availableorg.jdom2.JDOMException - as the input is a NAF file, a JDOMException could be thrownpublic final void parseCLI(String[] args) throws IOException, org.jdom2.JDOMException
args - the arguments passed through the CLIIOException - exception if problems with the incoming dataorg.jdom2.JDOMException - if xml exceptionpublic final void annotate(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
inputStream - the input streamoutputStream - the output streamIOException - the exception if not input is providedorg.jdom2.JDOMException - if xml exceptionpublic final void train()
throws IOException
IOException - throws an exception if errors in the various file inputs.public final void eval()
throws IOException
IOException - the io exception thrown if errors with paths are presentpublic final void loadEvalParameters()
public final void crossValidate()
throws IOException
IOException - input output exception if problems with corporaCopyright © 2016 IXA pipes. All rights reserved.