Skip to content

Commit 5b19027

Browse files
committed
Romanian fixed expressions.
1 parent 12c9692 commit 5b19027

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

udapi/block/ud/ro/fixfixed.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88

99

1010
class FixFixed(Block):
11-
"""Block for fixing verbal 'fixed' expressions."""
11+
"""Block for fixing annotation of some 'fixed' expressions."""
1212

1313
def process_node(self, node):
1414
fixchildren = [x for x in node.children if x.udeprel=='fixed']
1515
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]))
16+
if nfc > 0:
17+
if node.udeprel == 'advmod' and node.feats['ExtPos'] == '':
18+
node.feats['ExtPos'] = 'ADV'
19+
elif node.feats['ExtPos'] == '':
20+
logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))

0 commit comments

Comments
 (0)