Skip to content

Commit 2bfd39e

Browse files
committed
Add a little doc
1 parent e66d4bb commit 2bfd39e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ public static CoreNLPProtos.SemgrexResponse.SemgrexResult matchSentence(SemgrexP
5353
return semgrexResultBuilder.build();
5454
}
5555

56+
/**
57+
* For a single request, iterate through the SemanticGraphs it
58+
* includes, and add the results of each Semgrex operation included
59+
* in the request.
60+
*/
5661
public static CoreNLPProtos.SemgrexResponse processRequest(CoreNLPProtos.SemgrexRequest request) {
5762
ProtobufAnnotationSerializer serializer = new ProtobufAnnotationSerializer();
5863
CoreNLPProtos.SemgrexResponse.Builder responseBuilder = CoreNLPProtos.SemgrexResponse.newBuilder();

0 commit comments

Comments
 (0)