public class CLI extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
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 |
client(InputStream inputStream,
OutputStream outputStream)
The client to query the TCP server for annotation.
|
void |
crossValidate()
Main access to the cross validation.
|
void |
eval()
Main entry point for evaluation.
|
static void |
main(String[] args)
The main method to process the CLI.
|
void |
parseCLI(String[] args)
Parse the command line options.
|
void |
server()
Set up the TCP socket for annotation.
|
void |
train()
Main entry point for training.
|
public static final String DEFAULT_BEAM_SIZE
public CLI()
public static void main(String[] args) throws org.jdom2.JDOMException, IOException
args - the command line argumentsorg.jdom2.JDOMException - if xml mal-formed NAFIOException - if io problemspublic final void parseCLI(String[] args) throws IOException, org.jdom2.JDOMException
args - the argumentsIOException - if io errororg.jdom2.JDOMException - if malformed XMLpublic 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 malformed XMLpublic 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 server()
public final void client(InputStream inputStream, OutputStream outputStream)
inputStream - the stdinoutputStream - stdoutpublic final void crossValidate()
throws IOException
IOException - input output exception if problems with corporaCopyright © 2015 IXA pipes. All rights reserved.