|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGSentence
public class GSentence
This class represents a sentence from GENIA golden corpus. An exammple of such sentence is shown below:
<sentence id="S1">
Activation of
<term id="T1" lex="NF-kappa_B" sem="Protein_molecule">
NF-kappa B
</term>
by
<term id="T2" lex="interleukin_2" sem="Protein_molecule">
interleukin 2
</term>
in
<term id="T3" lex="human_blood_monocyte" sem="Cell_type">
<term id="T4" lex="human" sem="Multi_cell">
human
</term>
blood
<term id="T5" lex="monocyte" sem="Cell_type">
monocytes
</term>
</term>
.
</sentence>
GAbstract
,
GTerm
Field Summary | |
---|---|
java.util.ArrayList<GEvent> |
events
|
java.lang.String |
id
|
GAbstract |
parent
|
int |
sentence_number
|
java.util.ArrayList<GTerm> |
terms
|
Constructor Summary | |
---|---|
GSentence(GAbstract p)
To construct an GSentence, it has to belong to an abstract. |
Method Summary | |
---|---|
void |
addEvent(GEvent ge)
Add a GEvent to this sentence. |
void |
addTerm(GTerm gt)
Add a GTerm to this sentence. |
java.util.ArrayList |
getEvents()
Get the events associated with this sentence. |
void |
hello()
Wrapper for printEvents() |
void |
printEvents()
Echo the events of this sentence to stdour. |
void |
printTerms()
Echo the terms of this sentence to stdout. |
void |
setID(java.lang.String i)
Set the ID of this sentence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String id
public java.util.ArrayList<GTerm> terms
public java.util.ArrayList<GEvent> events
public GAbstract parent
public int sentence_number
Constructor Detail |
---|
public GSentence(GAbstract p)
Method Detail |
---|
public void setID(java.lang.String i)
i
- string representing the id of this sentencepublic void addTerm(GTerm gt)
gt
- the term to be addedpublic void addEvent(GEvent ge)
ge
- the event to be addedpublic java.util.ArrayList getEvents()
public void printEvents()
public void hello()
printEvents()
public void printTerms()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |