From bd5e91f47b58fc454be85a6ca2adfaeed0e7688c Mon Sep 17 00:00:00 2001 From: Dan Zeman Date: Tue, 19 Nov 2024 11:53:23 +0100 Subject: [PATCH] Since we now have ExtPos, no need to skip rel-upos-mark 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 40adf6a1..9f480d0c 100755 --- a/validate.py +++ b/validate.py @@ -1524,7 +1524,7 @@ def validate_upos_vs_deprel(id, tree): testmessage = "'case' should not be '%s'" % (upos) warn(testmessage, testclass, testlevel, testid, nodeid=id, lineno=tree['linenos'][id]) # Mark is normally a conjunction or adposition, maybe particle but definitely not a pronoun. - if deprel == 'mark' and re.match(r"^(NOUN|PROPN|ADJ|PRON|DET|NUM|VERB|AUX|INTJ)", upos) and not 'fixed' in childrels: + if deprel == 'mark' and re.match(r"^(NOUN|PROPN|ADJ|PRON|DET|NUM|VERB|AUX|INTJ)", upos): testid = 'rel-upos-mark' testmessage = "'mark' should not be '%s'" % (upos) warn(testmessage, testclass, testlevel, testid, nodeid=id, lineno=tree['linenos'][id])