takala/financial_phrasebank
Updated โข 6.21k โข 293
How to use santis2/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="santis2/phrasebank-sentiment-analysis") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("santis2/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("santis2/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.6737 | 0.94 | 100 | 0.4361 | 0.7936 | 0.8287 |
| 0.3148 | 1.89 | 200 | 0.3941 | 0.8269 | 0.8494 |
| 0.1572 | 2.83 | 300 | 0.5384 | 0.8289 | 0.8494 |
| 0.0615 | 3.77 | 400 | 0.5738 | 0.8370 | 0.8514 |
Base model
google-bert/bert-base-uncased