takala/financial_phrasebank
Updated • 9.02k • 264
How to use girijesh/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="girijesh/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("girijesh/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("girijesh/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.2653 | 0.94 | 100 | 0.4632 | 0.8016 | 0.8329 |
| 0.1828 | 1.89 | 200 | 0.4612 | 0.8412 | 0.8542 |
| 0.0819 | 2.83 | 300 | 0.6730 | 0.8321 | 0.8473 |
| 0.0408 | 3.77 | 400 | 0.6396 | 0.8378 | 0.8556 |
Base model
google-bert/bert-base-uncased