Skip to content

Commit cb0149f

Browse files
committed
"El que" re-attach if object.
1 parent 1bccb8b commit cb0149f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

udapi/block/ud/ca/elque.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,13 @@ def fix_pattern(self, adp, el, que, verb):
8080
if len(el.deps) == 1:
8181
el.deps[0]['parent'] = verb
8282
if verb.parent != adp and verb.parent != el and verb.parent != que:
83+
eldeprel = None
8384
if re.match(r'^[nc]subj$', verb.udeprel):
84-
attach(el, verb.parent, 'nsubj')
85+
eldeprel = 'nsubj'
86+
elif re.match(r'^ccomp$', verb.udeprel):
87+
eldeprel = 'obj'
88+
if eldeprel:
89+
attach(el, verb.parent, eldeprel)
8590
attach(verb, el, 'acl:relcl')
8691
# If anything before 'el' depends on the verb ('cc', 'mark', 'punct' etc.),
8792
# re-attach it to 'el'.

0 commit comments

Comments
 (0)