Modifier and Type | Field and Description |
---|---|
private java.util.Set<GraphEdge> |
GraphNode.incomingEdges
InComing edges
|
private java.util.Set<GraphEdge> |
GraphNode.outgoingEdges
OutGoing edges
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<GraphEdge> |
GraphNode.getIncomingEdges() |
java.util.Set<GraphEdge> |
GraphNode.getOutgoingEdges() |
Modifier and Type | Method and Description |
---|---|
int |
GraphNode.compareTo(Graph.IGraphNode<GraphEdge> node) |
java.lang.String |
ASemanticGraph.toForm(java.util.Comparator<GraphEdge> comparator)
Logical form
|
Constructor and Description |
---|
ASemanticGraph(TypedDependencyProvider provider,
TypedDependencyMode mode,
java.util.List<GraphNode> nodes,
java.util.HashSet<GraphEdge> edges,
java.util.List<GraphNode> roots)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private javax.swing.JComponent |
AnalysisDialog.makeGraphWidget(Graph<GraphNode,GraphEdge> graph,
Settings settings,
boolean lemmatize)
Make graph widget
|
void |
GraphDialog.setGraph(Graph<GraphNode,GraphEdge> graph,
GraphDecorator<GNode,GEdge> decorator,
boolean lemmatize)
Set graph
|
Modifier and Type | Method and Description |
---|---|
private void |
SemanticGraphRenderer.makeEdge(int fromX,
int toX,
int baseY,
int fromAnchorX,
int toAnchorX,
int yAnchor,
int height,
java.lang.String label,
java.awt.Color color,
boolean isBackwards,
boolean isLeftTerminal,
boolean isRightTerminal,
int bottom,
boolean isVisible,
GraphEdge graphEdge)
Make edge
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<GraphEdge> |
EdgeSort.sort(Graph<GraphNode,GraphEdge> graph,
RelationFilter relationFilter)
Sort edges per span
|
static java.util.List<GraphEdge> |
EdgeSort.sortPerNode(Graph<GraphNode,GraphEdge> graph,
RelationFilter relationFilter)
Order edges per node
|
static java.util.List<GraphEdge> |
EdgeSort.sortPerRelation(Graph<GraphNode,GraphEdge> graph,
RelationFilter relationFilter) |
Modifier and Type | Method and Description |
---|---|
int |
EdgeSort.RelationComparator.compare(GraphEdge edge1,
GraphEdge edge2) |
int |
EdgeSort.EdgeSpanComparator.compare(GraphEdge edge1,
GraphEdge edge2) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<GraphEdge> |
EdgeSort.sort(Graph<GraphNode,GraphEdge> graph,
RelationFilter relationFilter)
Sort edges per span
|
static java.util.List<GraphEdge> |
EdgeSort.sortPerNode(Graph<GraphNode,GraphEdge> graph,
RelationFilter relationFilter)
Order edges per node
|
static java.util.List<GraphEdge> |
EdgeSort.sortPerRelation(Graph<GraphNode,GraphEdge> graph,
RelationFilter relationFilter) |
Constructor and Description |
---|
Decorator(GraphEdge edge)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Graph<GraphNode,GraphEdge> |
Document.getGraph(int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode)
Get graph to be displayed (default is semantic graph)
|
Modifier and Type | Method and Description |
---|---|
static Graph<GraphNode,GraphEdge> |
GraphFactoryFromTypedDependencies.makeGraph(java.util.Collection<edu.stanford.nlp.trees.TypedDependency> typedDependencies)
Make graph from parse tree and dependencies
|
Graph<GraphNode,GraphEdge> |
GraphFactoryFromSemanticGraph.makeGraph(edu.stanford.nlp.semgraph.SemanticGraph semanticGraph,
TypedDependencyProvider provider,
TypedDependencyMode mode)
Make graph from Stanford semantic graph
|
static Graph<GraphNode,GraphEdge> |
GraphFactoryFromTypedDependencies.makeGraph2(java.util.Collection<edu.stanford.nlp.trees.TypedDependency> typedDependencies)
Make graph from parse tree and dependencies (unused alternative)
|
Modifier and Type | Method and Description |
---|---|
void |
MutableASemanticGraph.addEdge(GraphEdge edge)
Add edge
|
Modifier and Type | Method and Description |
---|---|
private static GraphNode |
GraphFactoryFromTypedDependencies.makeNode(edu.stanford.nlp.ling.IndexedWord referenceNode,
MutableGraph<GraphNode,GraphEdge> graph,
java.util.Map<edu.stanford.nlp.ling.IndexedWord,GraphNode> nodes)
Make graph node from reference node and attach node to graph
|
Modifier and Type | Method and Description |
---|---|
static Graph<GraphNode,GraphEdge> |
GraphFactory.makeGraph(ATypedDependencies artifact) |
Modifier and Type | Method and Description |
---|---|
void |
MutableASemanticGraph.addEdge(GraphEdge edge)
Add edge
|
Modifier and Type | Method and Description |
---|---|
private static edu.uci.ics.jung.graph.SparseMultigraph<GNode,GEdge> |
Model.makeGraph(Graph<GraphNode,GraphEdge> graph,
boolean lemmatize)
Make jung graph
|
void |
GraphWidget.set(Graph<GraphNode,GraphEdge> graph,
GraphDecorator<GNode,GEdge> decorator,
boolean lemmatize) |
void |
View.set(Graph<GraphNode,GraphEdge> graph,
GraphDecorator<GNode,GEdge> graphDecorator,
boolean lemmatize)
Set data model
|
Constructor and Description |
---|
Model(Graph<GraphNode,GraphEdge> graph,
boolean lemmatize)
Make model
|
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Comparator<GraphEdge> |
ASemanticGraphDecorator.edgeComparatorByTarget |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<GraphEdge> |
ASemanticGraphDecorator.getOutEdgesSorted(GraphNode node) |
Modifier and Type | Method and Description |
---|---|
Graph<GraphNode,GraphEdge> |
ISPOAnalyzer.analyze(Document document,
TypedDependencyProvider provider,
TypedDependencyMode mode) |
Graph<GraphNode,GraphEdge> |
SPOAnalyzer.analyze(Document document,
TypedDependencyProvider provider,
TypedDependencyMode mode) |
protected java.util.Collection<GraphEdge> |
SPOAnalyzerFromSemanticGraph.getEdges(Document document,
int sentenceIdx,
TypedDependencyProvider provider,
TypedDependencyMode mode) |
Graph<GraphNode,GraphEdge> |
SPOGraphFactory.makeGraph(java.util.List<Link> links,
java.util.Map<Instance,Coreferences.Mention> mentions) |
Modifier and Type | Method and Description |
---|---|
private static GraphNode |
SPOGraphFactory.makePNode(int sentenceIdx,
Token predicate,
java.util.Map<Instance,GraphNode> nodes,
java.util.Map<Instance,Coreferences.Mention> mentions,
MutableGraph<GraphNode,GraphEdge> graph) |
private static GraphNode |
SPOGraphFactory.makeTNode(int sentenceIdx,
Token term,
java.util.Map<Instance,GraphNode> nodes,
java.util.Map<Instance,Coreferences.Mention> mentions,
MutableGraph<GraphNode,GraphEdge> graph) |