takala/financial_phrasebank
Updated • 7.87k • 259
How to use fredriko/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="fredriko/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("fredriko/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("fredriko/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.5517 | 0.94 | 100 | 0.3797 | 0.8356 | 0.8604 |
| 0.2654 | 1.89 | 200 | 0.4290 | 0.8288 | 0.8549 |
| 0.134 | 2.83 | 300 | 0.4776 | 0.8344 | 0.8549 |
| 0.0594 | 3.77 | 400 | 0.5575 | 0.8315 | 0.8514 |
Base model
google-bert/bert-base-uncased