We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f80400 commit 12c9692Copy full SHA for 12c9692
udapi/block/ud/ro/fixfixed.py
@@ -11,14 +11,9 @@ class FixFixed(Block):
11
"""Block for fixing verbal 'fixed' expressions."""
12
13
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]))
+ fixchildren = [x for x in node.children if x.udeprel=='fixed']
+ nfc = len(fixchildren)
+ if nfc>0 and node.udeprel=="advmod":
+ node.feats['ExtPos'] = 'ADV'
+ #elif nfc>0:
+ # logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments