Skip to content

Commit 12c9692

Browse files
committed
New fixed expr
1 parent 3f80400 commit 12c9692

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

udapi/block/ud/ro/fixfixed.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ class FixFixed(Block):
1111
"""Block for fixing verbal 'fixed' expressions."""
1212

1313
def process_node(self, node):
14-
if node.upos=='VERB':
15-
fixchildren = [x for x in node.children if x.udeprel=='fixed']
16-
nfc = len(fixchildren)
17-
if nfc==1 and fixchildren[0].upos == 'NOUN':
18-
fixchildren[0].deprel = 'obj'
19-
elif nfc==2 and fixchildren[1].upos == 'NOUN':
20-
fixchildren[0].parent = fixchildren[1]
21-
fixchildren[0].deprel = 'case'
22-
fixchildren[1].deprel = 'obl'
23-
elif nfc>0:
24-
logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))
14+
fixchildren = [x for x in node.children if x.udeprel=='fixed']
15+
nfc = len(fixchildren)
16+
if nfc>0 and node.udeprel=="advmod":
17+
node.feats['ExtPos'] = 'ADV'
18+
#elif nfc>0:
19+
# logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))

0 commit comments

Comments
 (0)