takala/financial_phrasebank
Updated • 9.11k • 263
How to use sschangi/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="sschangi/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sschangi/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("sschangi/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.6379 | 0.94 | 100 | 0.4414 | 0.7871 | 0.8129 |
| 0.3052 | 1.89 | 200 | 0.3954 | 0.8452 | 0.8590 |
| 0.163 | 2.83 | 300 | 0.5131 | 0.8332 | 0.8556 |
| 0.0816 | 3.77 | 400 | 0.5439 | 0.8397 | 0.8556 |
Base model
google-bert/bert-base-uncased