|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cogroo.entities.Sentence
public class Sentence
Data structure that represents a natural language sentence. The annotations are added to the structure while the sentence is processed.
Constructor Summary | |
---|---|
Sentence()
|
Method Summary | |
---|---|
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()
|
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 |
setTokens(List<Token> tokens)
Sets the Tokens of this sentence. |
String |
toPlainText()
Gets the representation of the sentence as a plain text. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sentence()
Method Detail |
---|
public String toPlainText()
public String toString()
toString
in class Object
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 TokenGroup
public void setTokens(List<Token> tokens)
tokens
- public List<Chunk> getChunks()
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 boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |