public class LabeledParsedStringDocument extends LabeledStringDocument implements LabeledParsedDocument
Constructor and Description |
---|
LabeledParsedStringDocument(String label,
DependencyExtractor extractor,
String parse) |
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.
|
label
reader, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
label
public LabeledParsedStringDocument(String label, DependencyExtractor extractor, String parse)
public DependencyTreeNode[] parsedDocument()
DependencyTreeNode
instances.parsedDocument
in interface ParsedDocument
public String text()
text
in interface ParsedDocument
public String prettyPrintText()
ParsedDocument.text()
, but makes no claims as to reproducing the
original surface form of the document prior to parsing.prettyPrintText
in interface ParsedDocument
Copyright © 2012. All Rights Reserved.