jcolibri.extensions.textual.IE.representation
Class IEText

java.lang.Object
  extended by jcolibri.datatypes.Text
      extended by jcolibri.extensions.textual.IE.representation.IEText
All Implemented Interfaces:
TypeAdaptor
Direct Known Subclasses:
IETextGate, IETextOpenNLP

public class IEText
extends Text

Represents a Textual attribute that will be processed to extract information. A text is composed by paragraphs, paragraphs by sentences and sentences by tokens:

This organization is created by a specific method.
This object stores a list of paragraphs in the order they appear in the text.
This class also stores the extracted information:

Version:
1.0
Author:
Juan A. Recio Garcia
See Also:
Paragraph, Sentence, Token

Field Summary
protected  java.util.List<FeatureInfo> features
           
protected  java.util.List<Paragraph> paragraphs
           
protected  java.util.List<PhraseInfo> phrases
           
protected  java.util.List<java.lang.String> topics
           
 
Fields inherited from class jcolibri.datatypes.Text
rawContent
 
Constructor Summary
IEText()
          Creates an empty IEText
IEText(java.lang.String content)
          Creates an IEText from a String
 
Method Summary
 void addFeature(FeatureInfo feature)
          Adds a feature
 void addFeatures(java.util.List<FeatureInfo> features)
          Adds features
 void addParagraph(Paragraph paragraph)
          Adds a paragraph
 void addParagraphs(java.util.List<Paragraph> paragraphs)
          Adds paragraphs
 void addPhrase(PhraseInfo phrase)
          Adds a phrase
 void addPhrases(java.util.List<PhraseInfo> phrases)
          Adds phrases
 void addTopic(java.lang.String topics)
          Adds a topic
 void addTopics(java.util.List<java.lang.String> topics)
          Adds topics
 java.util.List<Sentence> getAllSentences()
          Returns all the sentences of this texts iterating over all paragraphs
 java.util.List<Token> getAllTokens()
          Returs all the tokens of this texts iterating over all paragraphs and their contained sentences.
 java.util.List<FeatureInfo> getFeatures()
          Returns the features
 java.util.List<Paragraph> getParagraphs()
          Returns the paragraphs
 java.util.List<PhraseInfo> getPhrases()
          Returns the phrases
 java.lang.String getRAWContent()
          Returns the original text of this IEText object
 java.util.List<java.lang.String> getTopics()
          Returns the topcis
 java.lang.String printAnnotations()
          Returns the annotations extracted in this text
 
Methods inherited from class jcolibri.datatypes.Text
fromString, 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

paragraphs

protected java.util.List<Paragraph> paragraphs

phrases

protected java.util.List<PhraseInfo> phrases

features

protected java.util.List<FeatureInfo> features

topics

protected java.util.List<java.lang.String> topics
Constructor Detail

IEText

public IEText()
Creates an empty IEText


IEText

public IEText(java.lang.String content)
Creates an IEText from a String

Parameters:
content -
Method Detail

getRAWContent

public java.lang.String getRAWContent()
Returns the original text of this IEText object


printAnnotations

public java.lang.String printAnnotations()
Returns the annotations extracted in this text


getFeatures

public java.util.List<FeatureInfo> getFeatures()
Returns the features


addFeatures

public void addFeatures(java.util.List<FeatureInfo> features)
Adds features


addFeature

public void addFeature(FeatureInfo feature)
Adds a feature


getParagraphs

public java.util.List<Paragraph> getParagraphs()
Returns the paragraphs


addParagraphs

public void addParagraphs(java.util.List<Paragraph> paragraphs)
Adds paragraphs


addParagraph

public void addParagraph(Paragraph paragraph)
Adds a paragraph


getPhrases

public java.util.List<PhraseInfo> getPhrases()
Returns the phrases


addPhrases

public void addPhrases(java.util.List<PhraseInfo> phrases)
Adds phrases


addPhrase

public void addPhrase(PhraseInfo phrase)
Adds a phrase


getTopics

public java.util.List<java.lang.String> getTopics()
Returns the topcis


addTopics

public void addTopics(java.util.List<java.lang.String> topics)
Adds topics


addTopic

public void addTopic(java.lang.String topics)
Adds a topic


getAllSentences

public java.util.List<Sentence> getAllSentences()
Returns all the sentences of this texts iterating over all paragraphs


getAllTokens

public java.util.List<Token> getAllTokens()
Returs all the tokens of this texts iterating over all paragraphs and their contained sentences.


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