Class Koelsch
java.lang.Object
Koelsch
- public class Koelsch
- extends java.lang.Object
This is the main class starting and controlling the translation process.
First, the input is read.
The input is traversed to the Tagger. Here the external tagger tags the input and the new informations are saved in word. (Tagger.start).
Next, the KoelnDic is started. Some words are checked here and sometimes even translated. (KoelnDic.startlookup)
If translation failed, an analysation is needed (Analyse.that).
Finally some complex words (like verbs or nomen) have to be generated, so the Generator is started (Generator.start)
Now the result (the Cologne translation) is printed out.
- Author:
- Arthur Laub
Arthur.Laub@urz.uni-hd.de
Project: Kölschifier.
Method Summary |
private static java.lang.String |
formatInput(java.lang.String input)
The input-stream is tokenized here. |
static void |
main(java.lang.String[] args)
|
private static void |
output(java.util.ListIterator li)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Koelsch
public Koelsch()
main
public static void main(java.lang.String[] args)
formatInput
private static final java.lang.String formatInput(java.lang.String input)
- The input-stream is tokenized here. Special care is taken of words with interpunction (i.e. fullstops, question mark, etc).
If an interpunction is found on the end of a word, the interpunction is seperated from the word by a whitespace.
The whitespace is needed for tagging. The tagger needs also a LineFeed command after every token.
- Parameters:
input
- (the input stream from the console)
- Returns:
- a new semantic form of the input - needed by the tagger
output
private static final void output(java.util.ListIterator li)