public interface ParsedDocument extends Document
Modifier and Type | Method and Description |
---|---|
DependencyTreeNode[] |
parsedDocument()
Returns the dependency tree of the next document as a sequence of
DependencyTreeNode instances. |
String |
prettyPrintText()
Returns a pretty-printed version of the document's text without any of
the parsing-related annotation and using heuristics to appropriately
space punctuation, quotes, and contractions.
|
String |
text()
Returns the text of the parsed document without any of the
parsing-related annotation, with each parsed token separated by
whitespace.
|
DependencyTreeNode[] parsedDocument()
DependencyTreeNode
instances.String text()
String prettyPrintText()
text()
, but makes no claims as to reproducing the
original surface form of the document prior to parsing.Copyright © 2012. All Rights Reserved.