jcolibri.extensions.textual.IE.gate
Class IETextGate

java.lang.Object
  extended by jcolibri.datatypes.Text
      extended by jcolibri.extensions.textual.IE.representation.IEText
          extended by jcolibri.extensions.textual.IE.gate.IETextGate
All Implemented Interfaces:
TypeAdaptor

public class IETextGate
extends IEText


Field Summary
protected  gate.Document doc
           
 
Fields inherited from class jcolibri.extensions.textual.IE.representation.IEText
features, paragraphs, phrases, topics
 
Fields inherited from class jcolibri.datatypes.Text
rawContent
 
Constructor Summary
IETextGate()
          Creates an empty IETextGate object.
IETextGate(java.lang.String content)
          Creates an IETextGate object with the given content.
 
Method Summary
 void fromString(java.lang.String content)
          Stores the given text in the object
protected  gate.Document getDocument()
          Returns the internal gate's document.
protected  gate.Annotation getParagraphMapping(Paragraph par)
          Returns the annotation object for a given paragraph
protected  gate.Annotation getSentenceMapping(Sentence sent)
          Returns the annotation object for a given sentence
protected  gate.Annotation getTokenMapping(Token tok)
          Returns the annotation object for a given token
protected  void setParagraphMapping(Paragraph par, gate.Annotation annot)
          Sets the annotation object for a given paragraph
protected  void setSentenceMapping(Sentence sent, gate.Annotation annot)
          Sets the annotation object for a given sentence
protected  void setTokenMapping(Token tok, gate.Annotation annot)
          Sets the annotation object for a given token
 
Methods inherited from class jcolibri.extensions.textual.IE.representation.IEText
addFeature, addFeatures, addParagraph, addParagraphs, addPhrase, addPhrases, addTopic, addTopics, getAllSentences, getAllTokens, getFeatures, getParagraphs, getPhrases, getRAWContent, getTopics, printAnnotations
 
Methods inherited from class jcolibri.datatypes.Text
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jcolibri.connector.TypeAdaptor
equals
 

Field Detail

doc

protected gate.Document doc
Constructor Detail

IETextGate

public IETextGate()
Creates an empty IETextGate object. Initializes GATE if required.


IETextGate

public IETextGate(java.lang.String content)
Creates an IETextGate object with the given content. Initializes GATE if required.

Method Detail

fromString

public void fromString(java.lang.String content)
                throws java.lang.Exception
Stores the given text in the object

Specified by:
fromString in interface TypeAdaptor
Overrides:
fromString in class Text
Throws:
java.lang.Exception

getDocument

protected gate.Document getDocument()
Returns the internal gate's document.


getParagraphMapping

protected gate.Annotation getParagraphMapping(Paragraph par)
Returns the annotation object for a given paragraph


setParagraphMapping

protected void setParagraphMapping(Paragraph par,
                                   gate.Annotation annot)
Sets the annotation object for a given paragraph


getSentenceMapping

protected gate.Annotation getSentenceMapping(Sentence sent)
Returns the annotation object for a given sentence


setSentenceMapping

protected void setSentenceMapping(Sentence sent,
                                  gate.Annotation annot)
Sets the annotation object for a given sentence


getTokenMapping

protected gate.Annotation getTokenMapping(Token tok)
Returns the annotation object for a given token


setTokenMapping

protected void setTokenMapping(Token tok,
                               gate.Annotation annot)
Sets the annotation object for a given token


GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es