edu.stanford.nlp.trees.semgraph
Class SemanticGraphFormatter
java.lang.Object
edu.stanford.nlp.trees.semgraph.SemanticGraphFormatter
public class SemanticGraphFormatter
- extends Object
Defines a class for pretty-printing SemanticGraphs.
- Author:
- Bill MacCartney
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SemanticGraphFormatter
public SemanticGraphFormatter()
SemanticGraphFormatter
public SemanticGraphFormatter(int width,
int indent,
boolean smartIndent,
boolean showRelns,
boolean showTags,
boolean showAnnos,
boolean showIndices)
formatSemanticGraph
public String formatSemanticGraph(SemanticGraph sg)
- Returns a pretty-printed string representation of the given semantic graph,
on one or more lines.
main
public static void main(String[] args)
Stanford NLP Group