jcolibri.extensions.textual.IE.representation
Class Sentence

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

public class Sentence
extends java.lang.Object

Represents a sentence of the text. A sentence is composed by Tokens.

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

Field Summary
protected  java.lang.String text
           
protected  java.util.List<Token> tokens
           
 
Constructor Summary
Sentence(java.lang.String text)
          Creates a sentence object that representes the text of the parameter.
 
Method Summary
 void addToken(Token token)
          Adds a token
 void addTokens(java.util.List<Token> tokens)
          Adds tokens
 java.lang.String getRawContent()
          Returns the original text of the sentence
 java.util.List<Token> getTokens()
          Returns the tokens
 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

tokens

protected java.util.List<Token> tokens

text

protected java.lang.String text
Constructor Detail

Sentence

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

Method Detail

getRawContent

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


getTokens

public java.util.List<Token> getTokens()
Returns the tokens


addTokens

public void addTokens(java.util.List<Token> tokens)
Adds tokens


addToken

public void addToken(Token token)
Adds a token


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