takala/financial_phrasebank
Updated • 7.15k • 263
How to use eusojk/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="eusojk/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("eusojk/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("eusojk/phrasebank-sentiment-analysis")This model is a fine-tuned version of bert-base-uncased on the financial_phrasebank dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 | Accuracy |
|---|---|---|---|---|---|
| 0.5486 | 0.94 | 100 | 0.4285 | 0.8165 | 0.8212 |
| 0.2559 | 1.89 | 200 | 0.3885 | 0.8364 | 0.8521 |
| 0.1101 | 2.83 | 300 | 0.5050 | 0.8445 | 0.8583 |
| 0.0358 | 3.77 | 400 | 0.6270 | 0.8353 | 0.8501 |
Base model
google-bert/bert-base-uncased