Skip to content

Commit

Permalink
Since we now have ExtPos, no need to skip rel-upos-case 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 556e0fe commit eb1cdf0
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 @@ -1519,7 +1519,7 @@ def validate_upos_vs_deprel(id, tree):
# NOUN: [cs] pomocí, prostřednictvím
# VERB: [en] including
# Interjection can also act as case marker for vocative, as in Sanskrit: भोः भगवन् / bhoḥ bhagavan / oh sir.
if deprel == 'case' and re.match(r"^(PROPN|ADJ|PRON|DET|NUM|AUX)", upos) and not 'fixed' in childrels:
if deprel == 'case' and re.match(r"^(PROPN|ADJ|PRON|DET|NUM|AUX)", upos):
testid = 'rel-upos-case'
testmessage = "'case' should not be '%s'" % (upos)
warn(testmessage, testclass, testlevel, testid, nodeid=id, lineno=tree['linenos'][id])
Expand Down

0 comments on commit eb1cdf0

Please sign in to comment.