|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.ape.ACEParser
ch.uzh.ifi.attempto.ape.APEWebservice
public class APEWebservice
This class provides an interface to the Attempto Parsing Engine (APE) webservice
(i.e. HTTP server).
The HTTP server implementation is provided by ape.exe. To start
a server, execute for example:
./ape.exe -httpserver -port 8000
| Constructor Summary | |
|---|---|
APEWebservice(java.lang.String wsUrl)
Creates a new parser object based on the URL of a running APE webservice. |
|
| Method Summary | |
|---|---|
ACEParserResult |
getMultiOutput(java.lang.String aceText,
Lexicon lexicon,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using the given lexicon. |
java.lang.String |
getSoloOutput(java.lang.String aceText,
Lexicon lexicon,
OutputType outputType)
Returns one single output for the given ACE text using the given lexicon. |
void |
setClexEnabled(boolean clexEnabled)
Determines whether the built-in lexicon should be used. |
void |
setGuessingEnabled(boolean guessing)
Determines whether unknown words should be guessed. |
void |
setURI(java.lang.String uri)
Sets the namespace URI to be used for outputs like OWL. |
void |
setWebserviceUrl(java.lang.String wsUrl)
Sets the URL of the APE webservice to be used. |
| Methods inherited from class ch.uzh.ifi.attempto.ape.ACEParser |
|---|
getMultiOutput, getSoloOutput, getURI, isClexEnabled, isGuessingEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public APEWebservice(java.lang.String wsUrl)
wsUrl - The URL of the APE webservice.| Method Detail |
|---|
public void setWebserviceUrl(java.lang.String wsUrl)
wsUrl - The URL of the APE webservice.
public java.lang.String getSoloOutput(java.lang.String aceText,
Lexicon lexicon,
OutputType outputType)
throws ACEParserException
ACEParser
getSoloOutput in class ACEParseraceText - 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 ACEParserResult getMultiOutput(java.lang.String aceText,
Lexicon lexicon,
OutputType... outputTypes)
ACEParser
getMultiOutput in class ACEParseraceText - 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 void setURI(java.lang.String uri)
ACEParser
setURI in class ACEParseruri - The namespace URI.public void setGuessingEnabled(boolean guessing)
ACEParser
setGuessingEnabled in class ACEParserguessing - true if unknown words should be guessed. false otherwise.public void setClexEnabled(boolean clexEnabled)
ACEParser
setClexEnabled in class ACEParserclexEnabled - true if the built-in lexicon should be used. false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||