takala/financial_phrasebank
Updated • 9.02k • 264
How to use zyoscovits/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="zyoscovits/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("zyoscovits/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("zyoscovits/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.5724 | 0.94 | 100 | 0.3946 | 0.8310 | 0.8508 |
| 0.2665 | 1.89 | 200 | 0.3415 | 0.8520 | 0.8618 |
| 0.1302 | 2.83 | 300 | 0.4812 | 0.8543 | 0.8686 |
| 0.0548 | 3.77 | 400 | 0.5636 | 0.8486 | 0.8624 |
Base model
google-bert/bert-base-uncased