public abstract class ACEParser extends Object
Modifier | Constructor and Description |
---|---|
protected |
ACEParser()
Creates a new ACEParser object.
|
Modifier and Type | Method and Description |
---|---|
abstract ACEParserResult |
getMultiOutput(String text,
Lexicon lexicon,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using the given lexicon.
|
ACEParserResult |
getMultiOutput(String text,
OutputType... outputTypes)
Returns multiple outputs for the given ACE text using no lexicon.
|
abstract String |
getSoloOutput(String text,
Lexicon lexicon,
OutputType outputType)
Returns one single output for the given ACE text using the given lexicon.
|
String |
getSoloOutput(String text,
OutputType outputType)
Returns one single output for the given ACE text using no lexicon.
|
String |
getURI()
Returns the namespace URI to be used for outputs like OWL.
|
boolean |
isClexEnabled()
Returns whether the built-in lexicon is 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(String uri)
Sets the namespace URI to be used for outputs like OWL.
|
public abstract String getSoloOutput(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 String getSoloOutput(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(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(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(String uri)
uri
- The namespace URI.public String getURI()
public void setClexEnabled(boolean clexEnabled)
clexEnabled
- true if the built-in lexicon should be used. false otherwise.public boolean isClexEnabled()
Copyright © 2013. All Rights Reserved.