|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkr.ac.kaist.swrc.jhannanum.comm.CommObject
kr.ac.kaist.swrc.jhannanum.comm.Sentence
public class Sentence
This class represents a sentence which is the sequence of eojeols that are morphologically analyzed. Each eojeol has a plain eojeol, a morpheme list, and a tag list for a sequence of morphemes.
Field Summary | |
---|---|
private Eojeol[] |
eojeols
The array of the eojeols that are morphologically analyzed. |
int |
length
The number of eojeols. |
private java.lang.String[] |
plainEojeols
The array of the plain eojeols. |
Constructor Summary | |
---|---|
Sentence(int documentID,
int sentenceID,
boolean endOfDocument)
Constructor. |
|
Sentence(int documentID,
int sentenceID,
boolean endOfDocument,
java.lang.String[] plainEojeols,
Eojeol[] eojeols)
Constructor. |
Method Summary | |
---|---|
Eojeol |
getEojeol(int index)
Returns the eojeol object at the specified index. |
Eojeol[] |
getEojeols()
Getter of the array of the eojeols that consist of morphemes and their tags. |
java.lang.String[] |
getPlainEojeols()
Returns the array of the plain eojeols. |
void |
setEojeol(int index,
Eojeol eojeol)
Set an eojeol at the specified index. |
void |
setEojeol(int index,
java.lang.String[] morphemes,
java.lang.String[] tags)
Set an eojeol at the specified index with morphemes and their tags. |
void |
setEojeols(Eojeol[] eojeols)
Set the eojeols list with the specified array. |
void |
setPlainEojeols(java.lang.String[] plainEojeols)
It sets the plain eojeol list with the specified array. |
java.lang.String |
toString()
Returns the string representation of this sentence. |
Methods inherited from class kr.ac.kaist.swrc.jhannanum.comm.CommObject |
---|
getDocumentID, getSentenceID, isEndOfDocument, setDocumentID, setEndOfDocument, setSentenceID |
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[] plainEojeols
private Eojeol[] eojeols
Constructor Detail |
---|
public Sentence(int documentID, int sentenceID, boolean endOfDocument)
documentID
- - ID of the document which this sentence belong tosentenceID
- - ID of the sentenceendOfDocument
- - If this flag is true, this sentence is the last one of the document.public Sentence(int documentID, int sentenceID, boolean endOfDocument, java.lang.String[] plainEojeols, Eojeol[] eojeols)
documentID
- - ID of the document which this sentence belong tosentenceID
- - ID of the sentenceendOfDocument
- - If this flag is true, this sentence is the last one of the document.Method Detail |
---|
public Eojeol[] getEojeols()
public Eojeol getEojeol(int index)
index
- - the index of the eojeol
public void setEojeols(Eojeol[] eojeols)
eojeols
- - new eojeol array for this sentencepublic void setEojeol(int index, Eojeol eojeol)
index
- - the index of the eojeol to set upeojeol
- - the new eojeolpublic void setEojeol(int index, java.lang.String[] morphemes, java.lang.String[] tags)
index
- - the index of the eojeol to set upmorphemes
- - the new morpheme listtags
- - the new tag listpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getPlainEojeols()
public void setPlainEojeols(java.lang.String[] plainEojeols)
plainEojeols
- - the array of the plain eojeols
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |