Skip to content

Commit

Permalink
Since we now have ExtPos, no need to skip rel-upos-cc for fixed expre…
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zeman committed Nov 19, 2024
1 parent a1c91fc commit b8e099b
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 @@ -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])
Expand Down

0 comments on commit b8e099b

Please sign in to comment.