We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c9692 commit 5b19027Copy full SHA for 5b19027
1 file changed
udapi/block/ud/ro/fixfixed.py
@@ -8,12 +8,13 @@
8
9
10
class FixFixed(Block):
11
- """Block for fixing verbal 'fixed' expressions."""
+ """Block for fixing annotation of some 'fixed' expressions."""
12
13
def process_node(self, node):
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]))
+ if nfc > 0:
+ if node.udeprel == 'advmod' and node.feats['ExtPos'] == '':
+ node.feats['ExtPos'] = 'ADV'
+ elif node.feats['ExtPos'] == '':
20
+ logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))
0 commit comments