public class Sentence extends Object implements Serializable, TokenGroup
| Constructor and Description |
|---|
Sentence() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
List<Chunk> |
getChunks()
Sets the Chunks of this sentence.
|
String |
getDocumentText() |
int |
getOffset() |
Node |
getRoot() |
String |
getSentence()
Gets the original sentence.
|
opennlp.tools.util.Span |
getSpan() |
List<SyntacticChunk> |
getSyntacticChunks() |
String |
getSyntaxTree() |
Sentence |
getTextSentence() |
List<Token> |
getTokens()
Gets the Tokens of this sentence.
|
String |
getTree() |
int |
hashCode() |
void |
setChunks(List<Chunk> chunks)
Sets the Chunks of this sentence.
|
void |
setDocumentText(String document) |
void |
setOffset(int offset) |
void |
setRoot(Node root) |
void |
setSentence(String sentence)
Sets the original sentence.
|
void |
setSpan(opennlp.tools.util.Span aSpan) |
void |
setSyntacticChunks(List<SyntacticChunk> sc) |
void |
setTextSentence(Sentence sentence2) |
void |
setTokens(List<Token> tokens)
Sets the Tokens of this sentence.
|
String |
toPlainText()
Gets the representation of the sentence as a plain text.
|
String |
toString() |
public String toPlainText()
public String getSentence()
public String getDocumentText()
public void setSentence(String sentence)
sentence - public void setDocumentText(String document)
public void setSpan(opennlp.tools.util.Span aSpan)
public opennlp.tools.util.Span getSpan()
public List<Token> getTokens()
getTokens in interface TokenGrouppublic void setTokens(List<Token> tokens)
tokens - public void setChunks(List<Chunk> chunks)
chunks - public List<SyntacticChunk> getSyntacticChunks()
public void setSyntacticChunks(List<SyntacticChunk> sc)
public void setRoot(Node root)
public Node getRoot()
public void setOffset(int offset)
public int getOffset()
public String getSyntaxTree()
public String getTree()
public void setTextSentence(Sentence sentence2)
public Sentence getTextSentence()
Copyright © 2012–2017 CoGrOO. All rights reserved.