add model 0e3c4c8
Wu Zetian commited on
How to use neal49/roberta-yelp with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="neal49/roberta-yelp") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("neal49/roberta-yelp")
model = AutoModelForSequenceClassification.from_pretrained("neal49/roberta-yelp")