ch.uzh.ifi.attempto.preditor.text
Interface ContextChecker
- All Known Implementing Classes:
- EnglishContextChecker
public interface ContextChecker
This class represents a context checker that is able to do small surface adaptations
of a token according to the surrounding tokens. E.g. in English "a" should become "an"
in front of "apple".
- Author:
- Tobias Kuhn
Method Summary |
java.lang.String |
getTextInContext(TextElement textElement,
java.lang.String precedingText,
java.lang.String followingText)
This method should return the adapted text of the text element if it occurs between the given
tokens. |
getTextInContext
java.lang.String getTextInContext(TextElement textElement,
java.lang.String precedingText,
java.lang.String followingText)
- This method should return the adapted text of the text element if it occurs between the given
tokens.
- Parameters:
textElement
- The text element whose text should be adapted to the context.precedingText
- The preceding token.followingText
- The following token.
- Returns:
- The adapted text.
Copyright 2008-2009, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)