From 841e11a452f2242b1025d6ee801b095eef3c9256 Mon Sep 17 00:00:00 2001 From: John Bauer Date: Thu, 14 Mar 2024 23:52:49 -0700 Subject: [PATCH] Don't CC underneath an MWE, since those are deliberately expected to be fixed. Improves 'all but' and 'whether or not' --- .../nlp/trees/UniversalEnglishGrammaticalRelations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edu/stanford/nlp/trees/UniversalEnglishGrammaticalRelations.java b/src/edu/stanford/nlp/trees/UniversalEnglishGrammaticalRelations.java index 93253502de..fbf096b391 100644 --- a/src/edu/stanford/nlp/trees/UniversalEnglishGrammaticalRelations.java +++ b/src/edu/stanford/nlp/trees/UniversalEnglishGrammaticalRelations.java @@ -260,7 +260,7 @@ private UniversalEnglishGrammaticalRelations() {} public static final GrammaticalRelation COORDINATION = new GrammaticalRelation(Language.UniversalEnglish, "cc", "coordination", DEPENDENT, ".*", tregexCompiler, - "__ ([ < (CC=target !< /^(?i:either|neither|both)$/ ) | < (CONJP=target !< (RB < /^(?i:not)$/ $+ (RB|JJ < /^(?i:only|just|merely)$/))) ] [!> /PP/ | !>2 NP])"); + "/^(?!MWE).*$/ ([ < (CC=target !< /^(?i:either|neither|both)$/ ) | < (CONJP=target !< (RB < /^(?i:not)$/ $+ (RB|JJ < /^(?i:only|just|merely)$/))) ] [!> /PP/ | !>2 NP])"); /**