Skip to content

Commit

Permalink
Treat 'dinna' as an MWT in the converter
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Mar 13, 2024
1 parent 541d3ec commit 1dd746c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/edu/stanford/nlp/trees/ud/EnglishMWTCombiner.java
Expand Up @@ -46,6 +46,14 @@ public SemanticGraph combineMWTs(SemanticGraph sg) {
" <semgrex>" + XMLUtils.escapeXML("{word:/'[tT]/}=first . {word:/(?i)is|was/}=second") + "</semgrex>",
" <edit-list>CombineMWT -node first -node second</edit-list>",
" </ssurgeon-pattern>",
" <ssurgeon-pattern>",
" <uid>6</uid>",
" <notes>Edit a node's MWT for dinna</notes>",
" <semgrex>" + XMLUtils.escapeXML("{word:/(?i)din/}=first . {word:/(?i)na/}=second") + "</semgrex>",
" <edit-list>CombineMWT -node first -node second</edit-list>",
" <edit-list>EditNode -node first -lemma do</edit-list>",
" <edit-list>EditNode -node second -lemma not</edit-list>",
" </ssurgeon-pattern>",
"</ssurgeon-pattern-list>");
List<SsurgeonPattern> patterns = inst.readFromString(mwt);
for (SsurgeonPattern editSsurgeon : patterns) {
Expand Down

0 comments on commit 1dd746c

Please sign in to comment.