Skip to content

Commit

Permalink
Since we now have ExtPos, no need to skip rel-upos-mark for fixed exp…
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zeman committed Nov 19, 2024
1 parent a9e4704 commit bd5e91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit bd5e91f

Please sign in to comment.