|
8 | 8 |
|
9 | 9 |
|
10 | 10 | class FixFixed(Block):
|
11 | | - """Block for fixing verbal 'fixed' expressions.""" |
| 11 | + """Block for fixing annotation of some 'fixed' expressions.""" |
12 | 12 |
|
13 | 13 | def process_node(self, node):
|
14 | 14 | fixchildren = [x for x in node.children if x.udeprel=='fixed']
|
15 | 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])) |
| 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