File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/edu/stanford/nlp/semgraph/semgrex/ssurgeon Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,11 @@ public static CoreNLPProtos.SsurgeonResponse processRequest(CoreNLPProtos.Ssurge
5252 xml .append ("</ssurgeon-pattern-list>\n " );
5353 List <SsurgeonPattern > patterns = inst .readFromString (xml .toString ());
5454
55- List < SemanticGraph > graphs = new ArrayList <> ();
55+ CoreNLPProtos . SsurgeonResponse . Builder responseBuilder = CoreNLPProtos . SsurgeonResponse . newBuilder ();
5656 for (CoreNLPProtos .DependencyGraph inputGraph : request .getGraphList ()) {
5757 List <CoreLabel > tokens = inputGraph .getTokenList ().stream ().map (serializer ::fromProto ).collect (Collectors .toList ());
5858 SemanticGraph graph = ProtobufAnnotationSerializer .fromProto (inputGraph , tokens , "ssurgeon" );
59- graphs .add (graph );
60- }
6159
62- CoreNLPProtos .SsurgeonResponse .Builder responseBuilder = CoreNLPProtos .SsurgeonResponse .newBuilder ();
63- for (SemanticGraph graph : graphs ) {
6460 SemanticGraph newGraph = graph ;
6561 boolean isChanged = false ;
6662 for (SsurgeonPattern pattern : patterns ) {
You can’t perform that action at this time.
0 commit comments