takala/financial_phrasebank
Updated • 9.22k • 257
How to use ramnathv/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ramnathv/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ramnathv/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("ramnathv/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.539 | 0.94 | 100 | 0.3789 | 0.8453 | 0.8597 |
| 0.2523 | 1.89 | 200 | 0.4040 | 0.8387 | 0.8446 |
| 0.1353 | 2.83 | 300 | 0.4799 | 0.8489 | 0.8624 |
| 0.0524 | 3.77 | 400 | 0.5833 | 0.8564 | 0.8638 |
Base model
google-bert/bert-base-uncased