|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.ape.ACEParser
public abstract class ACEParser
This is an interface to the Attempto Parsing Engine (APE), that translates sentences in Attempto Controlled English (ACE) into logic.
| Constructor Summary | |
|---|---|
protected |
ACEParser()
Creates a new ACEParser object. |
| Method Summary | |
|---|---|
abstract ACEParserResult |
getMultiOutput(java.lang.String text,
Lexicon lexicon,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using the given lexicon. |
ACEParserResult |
getMultiOutput(java.lang.String text,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using no lexicon. |
abstract 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. |
java.lang.String |
getSoloOutput(java.lang.String text,
OutputType outputType)
Returns one single output for the given ACE text using no lexicon. |
java.lang.String |
getURI()
Returns the namespace URI to be used for outputs like OWL. |
boolean |
isClexEnabled()
Returns whether the built-in lexicon should be used. |
boolean |
isGuessingEnabled()
Returns whether unknown words should be guessed. |
void |
setClexEnabled(boolean clexEnabled)
Determines whether the built-in lexicon should be used. |
void |
setGuessingEnabled(boolean guessingEnabled)
Determines whether unknown words should be guessed. |
void |
setURI(java.lang.String uri)
Sets the namespace URI to be used for outputs like OWL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ACEParser()
| Method Detail |
|---|
public abstract java.lang.String getSoloOutput(java.lang.String text,
Lexicon lexicon,
OutputType outputType)
throws ACEParserException
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.getMultiOutput(String, Lexicon, OutputType...)
public final java.lang.String getSoloOutput(java.lang.String text,
OutputType outputType)
throws ACEParserException
text - The ACE text to be parsed.outputType - The kind of output that should be returned.
ACEParserException - Contains the error messages if an error occurred.getSoloOutput(String, Lexicon, OutputType)
public abstract ACEParserResult getMultiOutput(java.lang.String text,
Lexicon lexicon,
OutputType... outputTypes)
text - The ACE text to be parsed.lexicon - The lexicon to be loaded.outputTypes - The kind of outputs that should be returned.
getSoloOutput(String, Lexicon, OutputType)
public final ACEParserResult getMultiOutput(java.lang.String text,
OutputType... outputTypes)
text - The ACE text to be parsed.outputTypes - The kind of outputs that should be returned.
getMultiOutput(String, Lexicon, OutputType...)public void setGuessingEnabled(boolean guessingEnabled)
guessingEnabled - true if unknown words should be guessed. false otherwise.public boolean isGuessingEnabled()
public void setURI(java.lang.String uri)
uri - The namespace URI.public java.lang.String getURI()
public void setClexEnabled(boolean clexEnabled)
clexEnabled - true if the built-in lexicon should be used. false otherwise.public boolean isClexEnabled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||