public class CLI extends Object
| 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) |
void |
client(InputStream inputStream,
OutputStream outputStream)
The client to query the TCP server for annotation.
|
void |
eval() |
void |
loadAnnotateParameters() |
static void |
main(String[] args) |
void |
parseCLI(String[] args)
Parse the command interface parameters with the argParser.
|
void |
server()
Set up the TCP socket for annotation.
|
void |
train() |
public CLI()
public static void main(String[] args) throws IOException, org.jdom2.JDOMException
IOExceptionorg.jdom2.JDOMExceptionpublic 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 formatting exceptionpublic final void annotate(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
IOExceptionorg.jdom2.JDOMExceptionpublic final void train()
public final void eval()
throws IOException
IOExceptionpublic final void server()
public final void client(InputStream inputStream, OutputStream outputStream)
inputStream - the stdinoutputStream - stdoutpublic void loadAnnotateParameters()
Copyright © 2017. All rights reserved.