0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ウクライナ語品詞付与・係り受け解析モデルmodernbert-base-ukrainian-ud-embedsリリース

0
Posted at

8月3日の記事の続きだが、NVIDIA A100-SXM4-40GBを8枚使ってmodernbert-base-ukrainianを作成し、さらにmodernbert-base-ukrainian-ud-embedsを試作した。Google Colaboratoryで動かしてみよう。

!pip install transformers triton deplacy
from transformers import pipeline
nlp=pipeline("universal-dependencies","KoichiYasuoka/modernbert-base-ukrainian-ud-embeds",trust_remote_code=True)
doc=nlp("Не скупись на втіху їй і ласку любий брате")
import deplacy
deplacy.serve(doc,port=None)

「Не скупись на втіху їй і ласку любий брате」を係り受け解析してみたところ、私(安岡孝一)の手元では以下の結果が出力された。

# text = Не скупись на втіху їй і ласку любий брате
1	Не	_	PART	_	Polarity=Neg	2	advmod	_	_
2	скупись	_	VERB	_	Aspect=Imp|Mood=Imp|Number=Sing|Person=2|VerbForm=Fin	0	root	_	_
3	на	_	ADP	_	Case=Acc	4	case	_	_
4	втіху	_	NOUN	_	Animacy=Inan|Case=Loc|Gender=Masc|Number=Sing	2	obl	_	_
5	їй	_	PRON	_	Case=Dat|Gender=Fem|Number=Sing|Person=3|PronType=Prs	2	obj	_	_
6	і	_	CCONJ	_	_	7	cc	_	_
7	ласку	_	NOUN	_	Animacy=Inan|Case=Acc|Gender=Fem|Number=Sing	4	conj	_	_
8	любий	_	ADJ	_	Case=Voc|Degree=Pos|Gender=Masc|Number=Sing	9	amod	_	_
9	брате	_	NOUN	_	Animacy=Anim|Case=Voc|Gender=Masc|Number=Sing	2	vocative	_	SpaceAfter=No

uk.png

惜しい。この文の「їй」は、いわゆる否定属格ではなく、単純に所有属格だと考えられるので、「втіху」─nmod→「їй」が正しいと思う。その点は8月3日の記事と同じ結果なのだが、さて、このあたり、どうチューニングしていけばいいのかな。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?