public class CLI extends Object
| Constructor and Description |
|---|
CLI()
Construct a CLI object with the sub-parsers to manage the command
line parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
absa(InputStream inputStream,
OutputStream outputStream)
Main method for Aspect Based Sentiment Analysis (ABSA).
|
void |
client(InputStream inputStream,
OutputStream outputStream)
The client to query the TCP server for annotation.
|
void |
extractAspects(InputStream inputStream,
OutputStream outputStream)
Main method to do Aspect Extraction for ABSA.
|
void |
extractOte(InputStream inputStream,
OutputStream outputStream)
Main method to do Opinion Target Extraction (OTE).
|
void |
extractPolarity(InputStream inputStream,
OutputStream outputStream)
Main method to do Opinion Target Extraction (OTE).
|
static void |
main(String[] args)
Main entry point of ixa-pipe-opinion.
|
void |
parseCLI(String[] args)
Parse the command interface parameters with the argParser.
|
void |
server()
Set up the TCP socket for annotation.
|
public CLI()
public static void main(String[] args) throws IOException, org.jdom2.JDOMException
args - the arguments passed through the CLIIOException - exception if input data not availableorg.jdom2.JDOMException - if problems with the xml formatting of NAFpublic 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 format problemspublic final void absa(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
inputStream - the input stream containing the content to tagoutputStream - the output stream providing the opinion targetsIOException - exception if problems in input or output streamsorg.jdom2.JDOMException - if xml formatting problemspublic final void extractOte(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
inputStream - the input stream containing the content to tagoutputStream - the output stream providing the opinion targetsIOException - exception if problems in input or output streamsorg.jdom2.JDOMException - if xml formatting problemspublic final void extractAspects(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
inputStream - the input stream containing the content to tagoutputStream - the output stream providing the opinion targetsIOException - exception if problems in input or output streamsorg.jdom2.JDOMException - if xml formatting problemspublic final void extractPolarity(InputStream inputStream, OutputStream outputStream) throws IOException, org.jdom2.JDOMException
inputStream - the input stream containing the content to tagoutputStream - the output stream providing the opinion targetsIOException - exception if problems in input or output streamsorg.jdom2.JDOMException - if xml formatting problemspublic final void server()
throws IOException
IOException - if io problemspublic final void client(InputStream inputStream, OutputStream outputStream)
inputStream - the stdinoutputStream - stdoutCopyright © 2018 IXA pipes. All rights reserved.