Skip to content

Commit

Permalink
Can treat 'sort of' the same as 'kind of' when converting constituenc…
Browse files Browse the repository at this point in the history
…y trees to dependencies. UniversalDependencies/docs#717
  • Loading branch information
AngledLuffa committed Feb 23, 2024
1 parent a68ac4b commit bc4acf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edu/stanford/nlp/trees/CoordinationTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ private static Tree findCCparent(Tree t, Tree root) {
TregexPattern.compile("@SBAR < ((IN|RB=node1 < /^(?i)as$/) $+ (IN=node2 < /^(?i)if$/))"), //as if
TregexPattern.compile("@PP < ((JJ|RB=node1 < /^(?i)prior$/) $+ (TO|IN=node2 < /^(?i)to$/))"), //prior to
TregexPattern.compile("@PP < ((IN=node1 < /^(?i)as$/) $+ (TO|IN=node2 < /^(?i)to$/))"), //as to
TregexPattern.compile("@ADVP < ((RB|NN=node1 < /^(?i)kind$/) $+ (IN|RB=node2 < /^(?i)of$/))"), //kind of
TregexPattern.compile("@ADVP < ((RB|NN=node1 < /^(?i)kind|sort$/) $+ (IN|RB=node2 < /^(?i)of$/))"), //kind of, sort of
TregexPattern.compile("@SBAR < ((IN|RB=node1 < /^(?i)whether$/) $+ (CC=node2 < /^(?i)or$/ $+ (RB=node3 < /^(?i)not$/)))"), //whether or not
TregexPattern.compile("@CONJP < ((IN=node1 < /^(?i)as$/) $+ (VBN=node2 < /^(?i)opposed$/ $+ (TO|IN=node3 < /^(?i)to$/)))"), //as opposed to
TregexPattern.compile("@ADVP|CONJP < ((VB|RB|VBD=node1 < /^(?i)let$/) $+ (RB|JJ=node2 < /^(?i)alone$/))"), //let alone
Expand Down

0 comments on commit bc4acf1

Please sign in to comment.