|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.ac.kaist.swrc.jhannanum.comm.Eojeol
public class Eojeol
This class represents an Eojeol for internal use. An eojeol consists of more than one umjeol, and each eojeol is separated with spaces. Korean is a agglutinative language so lexemes in an eojeol may be inflected.
| Field Summary | |
|---|---|
int |
length
The number of morphemes in this eojeol. |
private java.lang.String[] |
morphemes
Morphemes in the eojeol. |
private java.lang.String[] |
tags
Morpheme tags of each morpheme. |
| Constructor Summary | |
|---|---|
Eojeol()
Constructor. |
|
Eojeol(java.lang.String[] morphemes,
java.lang.String[] tags)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMorpheme(int index)
It returns the morpheme on the specific index. |
java.lang.String[] |
getMorphemes()
It returns the morpheme list in the eojeol. |
java.lang.String |
getTag(int index)
It returns the tag of the morpheme on the given position. |
java.lang.String[] |
getTags()
It returns the tag list for the morphemes in the eojeol. |
int |
setMorpheme(int index,
java.lang.String morpheme)
Set a morpheme on the specific position |
void |
setMorphemes(java.lang.String[] morphemes)
Set the morpheme list with a morpheme array. |
int |
setTag(int index,
java.lang.String tag)
It changes the tag of the morpheme on the index |
void |
setTags(java.lang.String[] tags)
It sets the tag list for the morphemes of the eojeol. |
java.lang.String |
toString()
It returns a string that represents the eojeol with morphemes and tags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int length
private java.lang.String[] morphemes
private java.lang.String[] tags
| Constructor Detail |
|---|
public Eojeol()
public Eojeol(java.lang.String[] morphemes,
java.lang.String[] tags)
morphemes - - array of morphemestags - - tag array for each morpheme| Method Detail |
|---|
public java.lang.String[] getMorphemes()
public java.lang.String getMorpheme(int index)
index - - index of morpheme
public void setMorphemes(java.lang.String[] morphemes)
morphemes - - array to set the morphemes
public int setMorpheme(int index,
java.lang.String morpheme)
index - - position of the morpheme to changemorpheme - - new morpheme for the index
public java.lang.String[] getTags()
public java.lang.String getTag(int index)
index - - the position of the morpheme to get its tag
public void setTags(java.lang.String[] tags)
tags - - new tags list for the morpheme list
public int setTag(int index,
java.lang.String tag)
index - - position of the morpheme to change its tagtag - - new morpheme tag
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||