Class GSentence

java.lang.Object
  extended by GSentence

public class GSentence
extends java.lang.Object

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>

See Also:
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

id

public java.lang.String id

terms

public java.util.ArrayList<GTerm> terms

events

public java.util.ArrayList<GEvent> events

parent

public GAbstract parent

sentence_number

public int sentence_number
Constructor Detail

GSentence

public GSentence(GAbstract p)
To construct an GSentence, it has to belong to an abstract.

Method Detail

setID

public void setID(java.lang.String i)
Set the ID of this sentence.

Parameters:
i - string representing the id of this sentence

addTerm

public void addTerm(GTerm gt)
Add a GTerm to this sentence.

Parameters:
gt - the term to be added

addEvent

public void addEvent(GEvent ge)
Add a GEvent to this sentence.

Parameters:
ge - the event to be added

getEvents

public java.util.ArrayList getEvents()
Get the events associated with this sentence.

Returns:
the events in this sentence

printEvents

public void printEvents()
Echo the events of this sentence to stdour.


hello

public void hello()
Wrapper for printEvents()

See Also:
printEvents()

printTerms

public void printTerms()
Echo the terms of this sentence to stdout.