Skip navigation links

Package edu.stanford.nlp.semgraph

This package provides a representation of dependency graphs (normally the collapsed Stanford Dependencies representation) as a graph (backed by the jgrapht graph library.

See: Description

Package edu.stanford.nlp.semgraph Description

This package provides a representation of dependency graphs (normally the collapsed Stanford Dependencies representation) as a graph (backed by the jgrapht graph library.

To create a typed dependency graph, a SemanticGraph from a parse tree,

 import edu.stanford.nlp.trees.semgraph.*;
 ...
 Tree treeParse = processSentence(sentence);
 SemanticGraph depGraph = SemanticGraphFactory.allTypedDependencies(treeParse, true);
 
Skip navigation links

Stanford NLP Group