Skip to content

Commit 72918d9

Browse files
committed
Add a no-self-loop rule to the very general VP < VP < other verb AUX rule in UniversalEnglishGrammaticalRelations. This doesn't change any trees in the PTB Train section, but does help the tag updater not hit false positives for the AUX rules UniversalDependencies/docs#717
1 parent f3288a8 commit 72918d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private UniversalEnglishGrammaticalRelations() {}
150150
public static final GrammaticalRelation AUX_MODIFIER =
151151
new GrammaticalRelation(Language.UniversalEnglish, "aux", "auxiliary",
152152
DEPENDENT, "VP|SQ|SINV|CONJP", tregexCompiler,
153-
"VP < VP < (/^(?:MD|VB.*|AUXG?|POS)$/=target)",
153+
"VP=root < VP < (/^(?:MD|VB.*|AUXG?|POS)$/=target) : (=root !<<# =target)",
154154
"SQ|SINV < (/^(?:VB|MD|AUX)/=target $++ /^(?:VP|ADJP)/)",
155155
// add handling of tricky VP fronting cases...
156156
"SINV < (VP=target < (/^(?:VB|AUX|POS)/=aux < " + beAuxiliaryRegex + ") $-- (VP < VBG))");

0 commit comments

Comments
 (0)