takala/financial_phrasebank
Updated • 8.7k • 258
How to use scbtm/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="scbtm/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("scbtm/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("scbtm/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.6113 | 0.94 | 100 | 0.4105 | 0.8210 | 0.8487 |
| 0.2869 | 1.89 | 200 | 0.3898 | 0.8331 | 0.8618 |
| 0.1563 | 2.83 | 300 | 0.4733 | 0.8356 | 0.8425 |
| 0.073 | 3.77 | 400 | 0.4698 | 0.8584 | 0.8700 |
Base model
google-bert/bert-base-uncased