takala/financial_phrasebank
Updated • 5.48k • 270
How to use mankness/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="mankness/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("mankness/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("mankness/phrasebank-sentiment-analysis", device_map="auto")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.6126 | 0.94 | 100 | 0.4014 | 0.8072 | 0.8377 |
| 0.296 | 1.89 | 200 | 0.4057 | 0.8319 | 0.8542 |
| 0.1393 | 2.83 | 300 | 0.4511 | 0.8380 | 0.8576 |
| 0.0709 | 3.77 | 400 | 0.5229 | 0.8455 | 0.8611 |
Base model
google-bert/bert-base-uncased