takala/financial_phrasebank
Updated • 6.58k • 275
How to use tangohoteltango/sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tangohoteltango/sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tangohoteltango/sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("tangohoteltango/sentiment-analysis", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on the financial_phrasebank dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
distilbert/distilbert-base-uncased