|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.ape.ACEParser ch.uzh.ifi.attempto.ape.APESocket
public class APESocket
This class provides an interface to the Attempto Parsing Engine (APE) socket server.
The socket server implementation is provided by ape.exe
. To start
a server, execute for example:
./ape.exe -server -port 2766
Constructor Summary | |
---|---|
APESocket(int port)
Constructs a new parser object based on the APE socket server running on "localhost". |
|
APESocket(java.lang.String host,
int port)
Constructs a new parser object based on the hostname and the port number of the APE socket server. |
Method Summary | |
---|---|
ACEParserResult |
getMultiOutput(java.lang.String text,
Lexicon lexicon,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using the given lexicon. |
java.lang.String |
getSoloOutput(java.lang.String text,
Lexicon lexicon,
OutputType outputType)
Returns one single output for the given ACE text using the given lexicon. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class ch.uzh.ifi.attempto.ape.ACEParser |
---|
getMultiOutput, getSoloOutput, getURI, isClexEnabled, isGuessingEnabled, setClexEnabled, setGuessingEnabled, setURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public APESocket(java.lang.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.Method Detail |
---|
public ACEParserResult getMultiOutput(java.lang.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 java.lang.String getSoloOutput(java.lang.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...)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |