Downloads · 30 days
11
2% of all-time downloads
imranraad/magpie-idioms-xlmroberta
magpie-idioms-xlmroberta is a token classification model from imranraad. Use it when you need labels on individual words, such as names. It is set up for transformers.
- MAGPIE corpus: https://aclanthology.org/2020.lrec-1.35/
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
654
Public
Repo size
2.2 GB
Likes
1
Public
Click a slice to open those files.
.bin1.1 GB · 98%
From the Hugging Face model README
You 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 AutoTrain"}' https://api-inference.huggingface.co/models/imranraad/autotrain-magpie-metaphor-xlmr-1590556166
Or Python API:
from transformers import AutoModelForTokenClassification, AutoTokenizer
model = AutoModelForTokenClassification.from_pretrained("imranraad/autotrain-magpie-metaphor-xlmr-1590556166", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("imranraad/autotrain-magpie-metaphor-xlmr-1590556166", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)