File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/edu/stanford/nlp/trees/ud Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ public SemanticGraph combineMWTs(SemanticGraph sg) {
4040 " <semgrex>" + XMLUtils .escapeXML ("{}=first . {word:/'/;cpos:PART}=second" ) + "</semgrex>" ,
4141 " <edit-list>CombineMWT -node first -node second</edit-list>" ,
4242 " </ssurgeon-pattern>" ,
43+ " <ssurgeon-pattern>" ,
44+ " <uid>5</uid>" ,
45+ " <notes>Edit a node's MWT for 'tis and 'twas</notes>" ,
46+ " <semgrex>" + XMLUtils .escapeXML ("{word:/'[tT]/}=first . {word:/(?i)is|was/}=second" ) + "</semgrex>" ,
47+ " <edit-list>CombineMWT -node first -node second</edit-list>" ,
48+ " </ssurgeon-pattern>" ,
4349 "</ssurgeon-pattern-list>" );
4450 List <SsurgeonPattern > patterns = inst .readFromString (mwt );
4551 for (SsurgeonPattern editSsurgeon : patterns ) {
You can’t perform that action at this time.
0 commit comments