|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.base.DefaultTextOperator ch.uzh.ifi.attempto.acewiki.aceowl.ACETextOperator
public class ACETextOperator
This is the text operator used for the ACE/OWL language engine for AceWiki.
Constructor Summary | |
---|---|
ACETextOperator(Ontology ontology)
Creates a new text operator. |
Method Summary | |
---|---|
TextElement |
createTextElement(java.lang.String text)
This method should create a text element for the given text. |
java.lang.String |
getTextInContext(TextElement textElement,
java.lang.String preceding,
java.lang.String following)
This method checks the context of a text element and can do small surface adaptations of a token according to the surrounding text. |
Methods inherited from class ch.uzh.ifi.attempto.base.DefaultTextOperator |
---|
getGlue, splitIntoTokens |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ACETextOperator(Ontology ontology)
ontology
- The ontology object.Method Detail |
---|
public TextElement createTextElement(java.lang.String text)
TextOperator
createTextElement
in interface TextOperator
createTextElement
in class DefaultTextOperator
text
- The text.
public java.lang.String getTextInContext(TextElement textElement, java.lang.String preceding, java.lang.String following)
TextOperator
getTextInContext
in interface TextOperator
getTextInContext
in class DefaultTextOperator
textElement
- The text element whose text should be adapted to the context.preceding
- The preceding text.following
- The following text.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |