Skip to content

Commit f69fef1

Browse files
committed
Add any named edges to the results of a Semgrex CLI request
1 parent 89970d7 commit f69fef1

File tree

5 files changed

+1824
-94
lines changed

5 files changed

+1824
-94
lines changed

src/edu/stanford/nlp/pipeline/CoreNLP.proto

+12
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,22 @@ message SemgrexResponse {
642642
required string reln = 2;
643643
}
644644

645+
message NamedEdge {
646+
required string name = 1;
647+
required int32 source = 2;
648+
required int32 target = 3;
649+
optional string reln = 4;
650+
optional bool isExtra = 5;
651+
optional uint32 sourceCopy = 6;
652+
optional uint32 targetCopy = 7;
653+
}
654+
645655
message Match {
646656
required int32 matchIndex = 1;
647657
repeated NamedNode node = 2;
648658
repeated NamedRelation reln = 3;
659+
repeated NamedEdge edge = 6;
660+
649661
// when processing multiple dependency graphs at once,
650662
// which dependency graph this applies to
651663
// indexed from 0

0 commit comments

Comments
 (0)