takala/financial_phrasebank
Updated • 8.15k • 269
How to use jessica-ecosia/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jessica-ecosia/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jessica-ecosia/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("jessica-ecosia/phrasebank-sentiment-analysis", device_map="auto")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.6031 | 0.94 | 100 | 0.3779 | 0.8373 | 0.8501 |
| 0.2667 | 1.89 | 200 | 0.4195 | 0.8408 | 0.8638 |
| 0.1264 | 2.83 | 300 | 0.4813 | 0.8459 | 0.8666 |
| 0.0582 | 3.77 | 400 | 0.5500 | 0.8386 | 0.8528 |
Base model
google-bert/bert-base-uncased