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) {
40
40
" <semgrex>" + XMLUtils .escapeXML ("{}=first . {word:/'/;cpos:PART}=second" ) + "</semgrex>" ,
41
41
" <edit-list>CombineMWT -node first -node second</edit-list>" ,
42
42
" </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>" ,
43
49
"</ssurgeon-pattern-list>" );
44
50
List <SsurgeonPattern > patterns = inst .readFromString (mwt );
45
51
for (SsurgeonPattern editSsurgeon : patterns ) {
You can’t perform that action at this time.
0 commit comments