|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.extensions.textual.IE.representation.Sentence
public class Sentence
Represents a sentence of the text. A sentence is composed by Tokens.
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 |
---|
protected java.util.List<Token> tokens
protected java.lang.String text
Constructor Detail |
---|
public Sentence(java.lang.String text)
Method Detail |
---|
public java.lang.String getRawContent()
public java.util.List<Token> getTokens()
public void addTokens(java.util.List<Token> tokens)
public void addToken(Token token)
public java.lang.String toString()
toString
in class java.lang.Object
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |