|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.datatypes.Text
jcolibri.extensions.textual.IE.representation.IEText
public class IEText
Represents a Textual attribute that will be processed to extract information. A text is composed by paragraphs, paragraphs by sentences and sentences by tokens:
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 |
---|
protected java.util.List<Paragraph> paragraphs
protected java.util.List<PhraseInfo> phrases
protected java.util.List<FeatureInfo> features
protected java.util.List<java.lang.String> topics
Constructor Detail |
---|
public IEText()
public IEText(java.lang.String content)
content
- Method Detail |
---|
public java.lang.String getRAWContent()
public java.lang.String printAnnotations()
public java.util.List<FeatureInfo> getFeatures()
public void addFeatures(java.util.List<FeatureInfo> features)
public void addFeature(FeatureInfo feature)
public java.util.List<Paragraph> getParagraphs()
public void addParagraphs(java.util.List<Paragraph> paragraphs)
public void addParagraph(Paragraph paragraph)
public java.util.List<PhraseInfo> getPhrases()
public void addPhrases(java.util.List<PhraseInfo> phrases)
public void addPhrase(PhraseInfo phrase)
public java.util.List<java.lang.String> getTopics()
public void addTopics(java.util.List<java.lang.String> topics)
public void addTopic(java.lang.String topics)
public java.util.List<Sentence> getAllSentences()
public java.util.List<Token> getAllTokens()
|
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 |