takala/financial_phrasebank
Updated • 9.02k • 264
How to use sirenstitches/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="sirenstitches/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sirenstitches/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("sirenstitches/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.5874 | 0.94 | 100 | 0.4026 | 0.8175 | 0.8432 |
| 0.2811 | 1.89 | 200 | 0.3685 | 0.8308 | 0.8404 |
| 0.1337 | 2.83 | 300 | 0.4108 | 0.8518 | 0.8645 |
| 0.0713 | 3.77 | 400 | 0.5174 | 0.8438 | 0.8556 |
Base model
google-bert/bert-base-uncased