takala/financial_phrasebank
Updated • 8.76k • 264
How to use neerajprad/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="neerajprad/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("neerajprad/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("neerajprad/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.5974 | 0.94 | 100 | 0.3898 | 0.8212 | 0.8370 |
| 0.2647 | 1.89 | 200 | 0.3821 | 0.8397 | 0.8583 |
| 0.1433 | 2.83 | 300 | 0.4250 | 0.8487 | 0.8645 |
| 0.0669 | 3.77 | 400 | 0.5374 | 0.8480 | 0.8576 |
Base model
google-bert/bert-base-uncased