takala/financial_phrasebank
Updated • 9.22k • 257
How to use akshay7/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="akshay7/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("akshay7/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("akshay7/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.6046 | 0.94 | 100 | 0.4107 | 0.8173 | 0.8370 |
| 0.2873 | 1.89 | 200 | 0.4488 | 0.8266 | 0.8301 |
| 0.1469 | 2.83 | 300 | 0.5130 | 0.8420 | 0.8501 |
| 0.0762 | 3.77 | 400 | 0.5105 | 0.8419 | 0.8542 |
Base model
google-bert/bert-base-uncased