Downloads · 30 days
770
2% of all-time downloads
llm-book/bert-base-japanese-v3-jnli
bert-base-japanese-v3-jnli is a text classification model from llm-book. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
「大規模言語モデル入門」の第5章で紹介している(自然言語推論)のモデルです。 cl-tohoku/bert-base-japanese-v3をJGLUEのMARC-jaデータセットでファインチューニングして構築されています。
Downloads · 30 days
770
2% of all-time downloads
All-time downloads
44.3K
Public
Repo size
890 MB
Likes
1
Public
Click a slice to open those files.
.bin445 MB · 100%
From the Hugging Face model README
「大規模言語モデル入門」の第5章で紹介している(自然言語推論)のモデルです。 cl-tohoku/bert-base-japanese-v3をJGLUEのMARC-jaデータセットでファインチューニングして構築されています。
from transformers import pipeline
nli_pipeline = pipeline(model="llm-book/bert-base-japanese-v3-jnli")
text = "二人の男性がジェット機を見ています"
entailment_text = "ジェット機を見ている人が二人います"
# textとentailment_textの論理関係を予測
print(nli_pipeline({"text": text, "text_pair": entailment_text}))
# {'label': 'entailment', 'score': 0.9964311122894287}