org.cogroo.entities.impl
Class SentenceCogroo
java.lang.Object
org.cogroo.entities.Sentence
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
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 |
SentenceCogroo
public SentenceCogroo(List<Token> tokens)
SentenceCogroo
public SentenceCogroo(String sentence)
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.