Downloads · 30 days
96
0% of all-time downloads
iton/YTLive-JaBERT-Emotion-v1
YTLive-JaBERT-Emotion-v1 is a machine learning model from iton. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
このモデルは、tohoku-nlp/bert-base-japanese-v3をベースにファインチューニングを行ったものです。 YoutubeLive及びTwitchのライブストリームのチャットを感情分析するアプリ開発のために作成されました。
Downloads · 30 days
96
0% of all-time downloads
All-time downloads
21.2K
Public
Parameters
111M
445 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors445 MB · 100%
From the Hugging Face model README
このモデルは、tohoku-nlp/bert-base-japanese-v3をベースにファインチューニングを行ったものです。 YoutubeLive及びTwitchのライブストリームのチャットを感情分析するアプリ開発のために作成されました。
このモデルは、Hugging Faceのtransformersライブラリを使用して簡単に利用できます。
!pip install fugashi unidic-lite
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tohoku-nlp/bert-base-japanese-v3")
model = AutoModelForSequenceClassification.from_pretrained("iton/YTLive-JaBERT-Emotion-v1")
# モデルの使用例
text = "ここにサンプルテキストを入力してください。"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=-1)
model.config.id2label[prediction.item()]
このモデルは、東北大学のBERT日本語Pretrained モデルをベースにしています。原著者の皆様に感謝いたします。