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?

omnes-floresは「Bei mir bist du schön means that you're grand」をどう係り受け解析するのか

0
Last updated at Posted at 2026-08-28

omnes-flores 0.1.1がリリースされたので、松田寛・馬春鵬・浅原正幸『段階的指示と表形式出力を用いた大規模言語モデルによる依存構造解析』(自然言語処理, Vol.33, No.2 (2026年6月), pp.920-956)を横目に、多言語係り受け解析を試してみることにした。ただ、64GBのGPUが私(安岡孝一)の手元に無いので、vllm-cpu 0.28.0で頑張ってみた。プログラムは、こんな感じ。

#! /bin/bash
TMPDIR=$HOME/.local/omnes-flores
if [ -d $TMPDIR ]
then . $TMPDIR/bin/activate
else python3 -m venv $TMPDIR
     . $TMPDIR/bin/activate
     pip3 install omnes-flores
     pip3 uninstall -y vllm
     pip3 install torch==2.13.0+cpu torchvision==0.28.0+cpu torchaudio==2.11.0+cpu torchcodec==0.16.0+cpu --index-url https://download.pytorch.org/whl/cpu
     pip3 install vllm-cpu==0.28.0
fi
export HF_TOKEN="hf_this_token_is_dummy_use_your_own_one"
echo "Bei mir bist du schön means that you're grand" | omnes-flores

「Bei mir bist du schön means that you're grand」を係り受け解析してみたところ、私の手元のAMD Ryzen7 H255 (64GB)では以下の結果が出力された。

# language = German
# text = Bei mir bist du schön means that you're grand
1	Bei	_	ADP	APPR	_	2	case	_	_
2	mir	_	PRON	PPER	_	5	nmod	_	_
3	bist	_	AUX	VAFIN	_	5	cop	_	_
4	du	_	PRON	PPER	_	5	nsubj	_	_
5	schön	_	ADJ	ADJD	_	6	csubj	_	_
6	means	_	VERB	FM	_	0	root	_	_
7	that	_	SCONJ	FM	_	9	mark	_	_
8	you're	_	AUX	FM	_	9	cop	_	_
9	grand	_	ADJ	FM	_	6	ccomp	_	_

うーん、「you」「're」が1語になってしまっていて悲しい。「mir」←「schön」のリンクも、nmodではなくoblの方が適切だと思う。このあたり、なかなか簡単には行かないのかな。

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?