edu.stanford.nlp.trees.semgraph
Class SemanticGraphFormatter
java.lang.Object
edu.stanford.nlp.trees.semgraph.SemanticGraphFormatter
public class SemanticGraphFormatter
- extends java.lang.Object
Defines a class for pretty-printing SemanticGraphs.
- Author:
- Bill MacCartney
Method Summary |
java.lang.String |
formatSemanticGraph(SemanticGraph sg)
Returns a pretty-printed string representation of the given semantic graph,
on one or more lines. |
static void |
main(java.lang.String[] args)
|
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 java.lang.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(java.lang.String[] args)
Stanford NLP Group