From b8e099b720529df8d25bcf3cc7bb88bc87b0efc5 Mon Sep 17 00:00:00 2001 From: Dan Zeman Date: Tue, 19 Nov 2024 15:30:21 +0100 Subject: [PATCH] Since we now have ExtPos, no need to skip rel-upos-cc for fixed expressions. https://github.com/UniversalDependencies/docs/issues/1062 --- validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate.py b/validate.py index 9f480d0c..c9a8beab 100755 --- a/validate.py +++ b/validate.py @@ -1529,7 +1529,7 @@ def validate_upos_vs_deprel(id, tree): testmessage = "'mark' should not be '%s'" % (upos) warn(testmessage, testclass, testlevel, testid, nodeid=id, lineno=tree['linenos'][id]) # Cc is a conjunction, possibly an adverb or particle. - if deprel == 'cc' and re.match(r"^(NOUN|PROPN|ADJ|PRON|DET|NUM|VERB|AUX|INTJ)", upos) and not 'fixed' in childrels: + if deprel == 'cc' and re.match(r"^(NOUN|PROPN|ADJ|PRON|DET|NUM|VERB|AUX|INTJ)", upos): testid = 'rel-upos-cc' testmessage = "'cc' should not be '%s'" % (upos) warn(testmessage, testclass, testlevel, testid, nodeid=id, lineno=tree['linenos'][id])