public class APESocket extends ACEParser
ape.exe
. To start
a server, execute for example:
./ape.exe -server -port 2766
Constructor and Description |
---|
APESocket(int port)
Constructs a new parser object based on the APE socket server running on "localhost".
|
APESocket(String host,
int port)
Constructs a new parser object based on the hostname and the port number
of the APE socket server.
|
Modifier and Type | Method and Description |
---|---|
ACEParserResult |
getMultiOutput(String text,
Lexicon lexicon,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using the given lexicon.
|
String |
getSoloOutput(String text,
Lexicon lexicon,
OutputType outputType)
Returns one single output for the given ACE text using the given lexicon.
|
getMultiOutput, getSoloOutput, getURI, isClexEnabled, isGuessingEnabled, setClexEnabled, setGuessingEnabled, setURI
public APESocket(String host, int port)
host
- The hostname of the socket server.port
- The port number of the socket server.public APESocket(int port)
port
- The port number of the socket server.public ACEParserResult getMultiOutput(String text, Lexicon lexicon, OutputType... outputTypes)
ACEParser
getMultiOutput
in class ACEParser
text
- The ACE text to be parsed.lexicon
- The lexicon to be loaded.outputTypes
- The kind of outputs that should be returned.ACEParser.getSoloOutput(String, Lexicon, OutputType)
public String getSoloOutput(String text, Lexicon lexicon, OutputType outputType) throws ACEParserException
ACEParser
getSoloOutput
in class ACEParser
text
- The ACE text to be parsed.lexicon
- The lexicon to be loaded.outputType
- The kind of output that should be returned.ACEParserException
- Contains the error messages if an error occurred.ACEParser.getMultiOutput(String, Lexicon, OutputType...)
Copyright © 2013. All Rights Reserved.