Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 540fe04

Browse files
Fix deprel by upos.
1 parent 14e9292 commit 540fe04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎udapi/block/ud/fixadvmodbyupos.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def process_node(self, node):
4444
elif node.udeprel == 'case':
4545
if node.upos == 'DET':
4646
node.deprel = 'det'
47+
elif node.upos == 'PRON':
48+
node.deprel = 'nmod'
4749
elif node.udeprel == 'mark':
4850
if node.upos in ['PRON', 'DET']:
4951
node.deprel = 'nsubj' # it could be also obj, iobj, obl or nmod; just guessing what might be more probable

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /