Downloads · 30 days
105
4% of all-time downloads
Mizuiro-sakura/deberta-v2-base-japanese-finetuned-ner
deberta-v2-base-japanese-finetuned-ner is a token classification model from Mizuiro-sakura. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
このモデルはdeberta-v2-base-japaneseを Wikipediaを用いた日本語の固有表現抽出データセット(ストックマーク社、https://github.com/stockmarkteam/ner-wikipedia-dataset )を用いてファインチューニングしたものです。
Downloads · 30 days
105
4% of all-time downloads
All-time downloads
2.6K
Public
Parameters
112M
895 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin447 MB · 50%
How the weights are stored.
F32112M · 100%
From the Hugging Face model README
このモデルはdeberta-v2-base-japaneseを Wikipediaを用いた日本語の固有表現抽出データセット(ストックマーク社、https://github.com/stockmarkteam/ner-wikipedia-dataset )を用いてファインチューニングしたものです。
This model is fine-tuned by using Wikipedia dataset.
You could use this model for NER tasks.
transformersおよびpytorch、sentencepiece、Juman++をインストールしてください。 以下のコードを実行することで、固有表現抽出タスクを解かせることができます。 please execute this code.
from transformers import AutoTokenizer,pipeline, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained('Mizuiro-sakura/deberta-v2-base-japanese-finetuned-ner')
model=AutoModelForTokenClassification.from_pretrained('Mizuiro-sakura/deberta-v2-base-japanese-finetuned-ner') # 学習済みモデルの読み込み
text=('昨日は東京で買い物をした')
ner=pipeline('ner', model=model, tokenizer=tokenizer)
result=ner(text)
print(result)
precision recall f1-score support
その他の組織名 0.73 0.75 0.74 238
イベント名 0.81 0.81 0.81 215
人名 0.84 0.87 0.85 547
地名 0.83 0.83 0.83 446
政治的組織名 0.82 0.85 0.83 263
施設名 0.74 0.86 0.80 241
法人名 0.81 0.82 0.82 487
製品名 0.68 0.73 0.71 252
micro avg 0.79 0.82 0.81 2689
macro avg 0.78 0.81 0.80 2689
weighted avg 0.79 0.82 0.81 2689
日本語Wikipedeia(3.2GB)および、cc100(85GB)、oscar(54GB)を用いて訓練されたモデルです。 京都大学黒橋研究室が公表されました。
This is a Japanese DeBERTa V2 base model pre-trained on Japanese Wikipedia, the Japanese portion of CC-100, and the Japanese portion of OSCAR.
モデルを公開してくださった京都大学黒橋研究室には感謝いたします。
I would like to thank Kurohashi Lab at Kyoto University.