edu.stanford.nlp.trees.semgraph
Class SemanticGraphFormatter

java.lang.Object
  extended by edu.stanford.nlp.trees.semgraph.SemanticGraphFormatter

public class SemanticGraphFormatter
extends Object

Defines a class for pretty-printing SemanticGraphs.

Author:
Bill MacCartney

Constructor Summary
SemanticGraphFormatter()
           
SemanticGraphFormatter(int width, int indent, boolean smartIndent, boolean showRelns, boolean showTags, boolean showAnnos, boolean showIndices)
           
 
Method Summary
 String formatSemanticGraph(SemanticGraph sg)
          Returns a pretty-printed string representation of the given semantic graph, on one or more lines.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticGraphFormatter

public SemanticGraphFormatter()

SemanticGraphFormatter

public SemanticGraphFormatter(int width,
                              int indent,
                              boolean smartIndent,
                              boolean showRelns,
                              boolean showTags,
                              boolean showAnnos,
                              boolean showIndices)
Method Detail

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