jcolibri.extensions.textual.IE.representation
Class Paragraph

java.lang.Object
  extended by jcolibri.extensions.textual.IE.representation.Paragraph

public class Paragraph
extends java.lang.Object

Represents a paragraph of the text. It is composed by sentences.

Version:
1.0
Author:
Juan A. Recio-Garcia
See Also:
Sentence

Field Summary
protected  java.util.List<Sentence> sentences
           
 
Constructor Summary
Paragraph(java.lang.String text)
          Creates a paragraph object that representes the text of the parameter.
 
Method Summary
 void addSentence(Sentence sentence)
          Adds a sentence
 void addSentences(java.util.List<Sentence> sentences)
          Adds sentences
 java.lang.String getRawContent()
          Returns the original text of the paragraph
 java.util.List<Sentence> getSentences()
          Returns the sentences
 java.lang.String toString()
          Prints the content and annotations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sentences

protected java.util.List<Sentence> sentences
Constructor Detail

Paragraph

public Paragraph(java.lang.String text)
Creates a paragraph object that representes the text of the parameter.

Method Detail

getRawContent

public java.lang.String getRawContent()
Returns the original text of the paragraph


getSentences

public java.util.List<Sentence> getSentences()
Returns the sentences


addSentences

public void addSentences(java.util.List<Sentence> sentences)
Adds sentences


addSentence

public void addSentence(Sentence sentence)
Adds a sentence


toString

public java.lang.String toString()
Prints the content and annotations.

Overrides:
toString in class java.lang.Object

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