|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Word
The Word-Class functions as the central storage place for variables needed to translate any word. The Grammar-Class is a subclass of Word containing all grammatical information (person, genus, kasus, tempus, info, etc). The Status-Class is also a subclass of word containing the actual status of the translation (e.g. analysed? generated? etc)
Nested Class Summary | |
(package private) class |
Word.Grammar
This subclass of word is needed to save all the grammatical information of a word. |
(package private) class |
Word.Status
Status is a subclass of Word. |
Field Summary | |
static int |
counter
|
private int |
declination_pattern
|
private Word.Grammar |
grammar
|
private java.lang.String |
hginput
|
private java.lang.String |
hglemma
|
private java.lang.String |
koeinfinitiv
|
private java.lang.String |
koelemma
|
private java.lang.String |
koeoutput
|
private java.lang.String |
koeplural
|
private java.lang.String |
koepraeteritum
|
int |
sentencepos
|
private Word.Status |
status
|
private int |
tag
|
Constructor Summary | |
(package private) |
Word()
The empty constructor Word initializes Word.Grammar and Word.Status |
(package private) |
Word(java.lang.String hginput,
int tag,
java.lang.String hglemma,
int sentencepos)
This constructor of Word sets the params below and initializes Word.Grammar and Word.Status |
Method Summary | |
Word.Grammar |
getGrammar()
is used to access according variable of word. |
java.lang.String |
getHgInput()
getHgInput is used to access the hginput variable of word. |
java.lang.String |
getHgLemma()
getHgLemma is used to access according variable of word. |
int |
getKoeDeclinition()
is used to access according variable of word. |
java.lang.String |
getKoeInfinitiv()
is used to access according variable of word. |
java.lang.String |
getKoeLemma()
is used to access according variable of word. |
java.lang.String |
getKoePlural()
is used to access according variable of word. |
java.lang.String |
getKoePraeteritum()
is used to access according variable of word. |
java.lang.String |
getKoeTranslation()
s used to access according variable of word. |
int |
getSentencePosition()
getSentencePosition is used to access according variable of word. |
Word.Status |
getStatus()
is used to access according variable of word. |
int |
getTag()
getTag is used to access the tag variable of word. |
void |
setKoeDeclination(int declination_pattern)
This method sets the Cologne declinition pattern of a regular verb. |
void |
setKoeInfinitiv(java.lang.String koeinfinitiv)
This method sets the Cologne Infinitiv supplied by the dictionary. |
void |
setKoeLemma(java.lang.String koelemma)
This method sets the Cologne Lemma supplied by the dictionary. |
void |
setKoeLemma(java.lang.String koelemma,
java.lang.String koeplural)
This method sets the Cologne Lemma and the Colgne plural (mostly used with nomen) supplied by the dictionary. |
void |
setKoePraeteritum(java.lang.String koepraeteritum)
This method sets the Cologne praeteritum - stem supplied by the dictionary. |
void |
setKoeTranslation()
This method is used to set a Cologne translation which is aquivilent to the Highgerman input. |
void |
setKoeTranslation(java.lang.String koeoutput)
setKoeTranslation is used when the translation is found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int counter
private Word.Grammar grammar
private java.lang.String hginput
private java.lang.String hglemma
private java.lang.String koeoutput
private java.lang.String koeinfinitiv
private java.lang.String koepraeteritum
private int declination_pattern
private java.lang.String koelemma
private java.lang.String koeplural
public int sentencepos
private Word.Status status
private int tag
Constructor Detail |
Word()
Word(java.lang.String hginput, int tag, java.lang.String hglemma, int sentencepos)
hginput
- (the Highgerman input)tag
- (the word-tag supplied by the Tagger)hglemma
- (the Highgerman lemma supplied by the tagger)sentencepos
- (the position of the word in the sentence)Method Detail |
public Word.Grammar getGrammar()
public final java.lang.String getHgInput()
public final java.lang.String getHgLemma()
public final java.lang.String getKoeLemma()
public final int getKoeDeclinition()
public final java.lang.String getKoeInfinitiv()
public final java.lang.String getKoePraeteritum()
public final java.lang.String getKoePlural()
public final java.lang.String getKoeTranslation()
public final int getSentencePosition()
public Word.Status getStatus()
public final int getTag()
public final void setKoeInfinitiv(java.lang.String koeinfinitiv)
koeinfinitiv
- (supplied by the Cologne dictionary)public final void setKoeDeclination(int declination_pattern)
declination_pattern
- (supplied by the Cologne dictionary)public final void setKoePraeteritum(java.lang.String koepraeteritum)
koepraeteritum
- (supplied by the Cologne dictionary)public final void setKoeLemma(java.lang.String koelemma)
koelemma
- (supplied by the Cologne dictionary)public final void setKoeLemma(java.lang.String koelemma, java.lang.String koeplural)
koelemma
- (supplied by the Cologne dictionary)koeplural
- (supplied by the Cologne dictionary)public final void setKoeTranslation()
public final void setKoeTranslation(java.lang.String koeoutput)
koeoutput
- (the Cologne translation)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |