fix readme typo 459f7eb
David Pollack commited on
How to use dhpollack/distilbert-dummy-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="dhpollack/distilbert-dummy-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("dhpollack/distilbert-dummy-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("dhpollack/distilbert-dummy-sentiment")