Skip to content

Commit 47b349d

Browse files
committed
SemgrexMatch now supports the other getters for the SemgrexMatcher results
1 parent 5d3367e commit 47b349d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/edu/stanford/nlp/semgraph/semgrex/SemgrexMatch.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,22 @@ public Set<String> getNodeNames() {
6565
return namesToNodes.keySet();
6666
}
6767

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+
6884
public String toString() {
6985
StringBuilder builder = new StringBuilder();
7086
builder.append(matchedPattern);

0 commit comments

Comments
 (0)