Downloads · 30 days
33
2% of all-time downloads
philschmid/RoBERTa-Banking77
RoBERTa-Banking77 is a text classification model from philschmid. Use it when you need a label for a piece of text. It is set up for transformers.
- Problem type: Multi-class Classification
Downloads · 30 days
33
2% of all-time downloads
All-time downloads
1.6K
Public
Repo size
657 MB
Likes
0
Public
Click a slice to open those files.
.bin329 MB · 99%
From the Hugging Face model README
RoBERTa-Banking77 trained using autoNLPYou can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/philschmid/RoBERTa-Banking77
Or Python API:
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_id = 'philschmid/RoBERTa-Banking77'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model)
classifier('What is the base of the exchange rates?')