public class GraphFactoryFromSemanticGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<WordSegment> |
segmentation
Segmentation to use if absent on index word
|
Constructor and Description |
---|
GraphFactoryFromSemanticGraph(java.util.List<WordSegment> segmentation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Graph<GraphNode,GraphEdge> |
makeGraph(edu.stanford.nlp.semgraph.SemanticGraph semanticGraph,
TypedDependencyProvider provider,
TypedDependencyMode mode)
Make graph from Stanford semantic graph
|
private final java.util.List<WordSegment> segmentation
public GraphFactoryFromSemanticGraph(java.util.List<WordSegment> segmentation)
segmentation
- segmentationpublic Graph<GraphNode,GraphEdge> makeGraph(edu.stanford.nlp.semgraph.SemanticGraph semanticGraph, TypedDependencyProvider provider, TypedDependencyMode mode)
semanticGraph
- Stanford semantic graphprovider
- typed dependency providermode
- typed dependency mode