We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3367e commit 47b349dCopy full SHA for 47b349d
src/edu/stanford/nlp/semgraph/semgrex/SemgrexMatch.java
@@ -65,6 +65,22 @@ public Set<String> getNodeNames() {
65
return namesToNodes.keySet();
66
}
67
68
+ public Set<String> getRelationNames() {
69
+ return namesToRelations.keySet();
70
+ }
71
+
72
+ public String getRelnString(String name) {
73
+ return namesToRelations.get(name);
74
75
76
+ public Set<String> getEdgeNames() {
77
+ return namesToEdges.keySet();
78
79
80
+ public SemanticGraphEdge getEdge(String name) {
81
+ return namesToEdges.get(name);
82
83
84
public String toString() {
85
StringBuilder builder = new StringBuilder();
86
builder.append(matchedPattern);
0 commit comments