Instructions to use A-Funakoshi/bert-multilingual-sentiments-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use A-Funakoshi/bert-multilingual-sentiments-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="A-Funakoshi/bert-multilingual-sentiments-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("A-Funakoshi/bert-multilingual-sentiments-base") model = AutoModelForSequenceClassification.from_pretrained("A-Funakoshi/bert-multilingual-sentiments-base") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("A-Funakoshi/bert-multilingual-sentiments-base")
model = AutoModelForSequenceClassification.from_pretrained("A-Funakoshi/bert-multilingual-sentiments-base")Quick Links
multilingual-sentimentsデータセットをbertベースのモデルでfinetuningしたもの
- ベースモデル:cl-tohoku/bert-base-japanese-whole-word-masking
- データセット:tyqiangz/multilingual-sentiments
- 学習率スケジュールタイプ(lr_scheduler_type): constant
- 学習率(learning rate): 2e-5
- 勾配累積ステップ(gradient_accumulation_steps): なし
- 正則化(weight_decay): なし
- Epoch: 100
- EarlyStopping: early_stopping_patience=3
- Downloads last month
- 2
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="A-Funakoshi/bert-multilingual-sentiments-base")