org.cogroo.entities.impl
Class SentenceCogroo

java.lang.Object
  extended by org.cogroo.entities.Sentence
      extended by org.cogroo.entities.impl.SentenceCogroo
All Implemented Interfaces:
Serializable, TokenGroup

public class SentenceCogroo
extends Sentence

Adds some String realization to Sentence methods.

Author:
William Colen
See Also:
Serialized Form

Constructor Summary
SentenceCogroo(List<Token> tokens)
           
SentenceCogroo(String sentence)
           
 
Method Summary
 String getAnalysisAsString()
          Returns the grammar check analysis as a string like as follows:
 String toPlainText()
          An implementation of toPlainText method.
 
Methods inherited from class org.cogroo.entities.Sentence
equals, getChunks, getDocumentText, getOffset, getRoot, getSentence, getSpan, getSyntacticChunks, getSyntaxTree, getTokens, getTree, hashCode, setChunks, setDocumentText, setOffset, setRoot, setSentence, setSpan, setSyntacticChunks, setTokens, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SentenceCogroo

public SentenceCogroo(List<Token> tokens)

SentenceCogroo

public SentenceCogroo(String sentence)
Method Detail

getAnalysisAsString

public String getAnalysisAsString()
Returns the grammar check analysis as a string like as follows:
 [VERB][B-VP*] Fomos --> {}_V_PS_1P_IND_VFIN_
 [-   ][I-VP ] levados --> {levar}_V_PCP_M_P_
 [-   ][O    ] a --> {a}_PRP_
 [-   ][B-NP ] a --> {}_DET_F_S_
 [-   ][I-NP*] crer --> {crer}_V_INF_3S_
 [-   ][O    ] . --> {}_-PNT_ABS
 

Returns:
the grammar check analysis as a string.

toPlainText

public String toPlainText()
An implementation of toPlainText method.

Overrides:
toPlainText in class Sentence
Returns:
The sentence as a string.


Copyright © 2012-2013 CoGrOO. All Rights Reserved.