takala/financial_phrasebank
Updated • 6.77k • 269
How to use Priyabrata018/phrasebank-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Priyabrata018/phrasebank-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Priyabrata018/phrasebank-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("Priyabrata018/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.6085 | 0.94 | 100 | 0.4151 | 0.8177 | 0.8411 |
| 0.2959 | 1.89 | 200 | 0.3948 | 0.8349 | 0.8514 |
| 0.161 | 2.83 | 300 | 0.4703 | 0.8402 | 0.8446 |
| 0.0853 | 3.77 | 400 | 0.5417 | 0.8580 | 0.8624 |
Base model
google-bert/bert-base-uncased