Skip to content

Commit bc4acf1

Browse files
committed
Can treat 'sort of' the same as 'kind of' when converting constituency trees to dependencies. UniversalDependencies/docs#717
1 parent a68ac4b commit bc4acf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edu/stanford/nlp/trees/CoordinationTransformer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ private static Tree findCCparent(Tree t, Tree root) {
674674
TregexPattern.compile("@SBAR < ((IN|RB=node1 < /^(?i)as$/) $+ (IN=node2 < /^(?i)if$/))"), //as if
675675
TregexPattern.compile("@PP < ((JJ|RB=node1 < /^(?i)prior$/) $+ (TO|IN=node2 < /^(?i)to$/))"), //prior to
676676
TregexPattern.compile("@PP < ((IN=node1 < /^(?i)as$/) $+ (TO|IN=node2 < /^(?i)to$/))"), //as to
677-
TregexPattern.compile("@ADVP < ((RB|NN=node1 < /^(?i)kind$/) $+ (IN|RB=node2 < /^(?i)of$/))"), //kind of
677+
TregexPattern.compile("@ADVP < ((RB|NN=node1 < /^(?i)kind|sort$/) $+ (IN|RB=node2 < /^(?i)of$/))"), //kind of, sort of
678678
TregexPattern.compile("@SBAR < ((IN|RB=node1 < /^(?i)whether$/) $+ (CC=node2 < /^(?i)or$/ $+ (RB=node3 < /^(?i)not$/)))"), //whether or not
679679
TregexPattern.compile("@CONJP < ((IN=node1 < /^(?i)as$/) $+ (VBN=node2 < /^(?i)opposed$/ $+ (TO|IN=node3 < /^(?i)to$/)))"), //as opposed to
680680
TregexPattern.compile("@ADVP|CONJP < ((VB|RB|VBD=node1 < /^(?i)let$/) $+ (RB|JJ=node2 < /^(?i)alone$/))"), //let alone

0 commit comments

Comments
 (0)