abhishek's picture
abhishek HF staff
Commit From AutoNLP
7dc76de
metadata
tags: autonlp
language: en
widget:
  - text: I love AutoNLP 🤗
datasets:
  - kSaluja/autonlp-data-tele_new_5k
co2_eq_emissions: 2.96638567287195

Model Trained Using AutoNLP

  • Problem type: Entity Extraction
  • Model ID: 557515810
  • CO2 Emissions (in grams): 2.96638567287195

Validation Metrics

  • Loss: 0.12897901237010956
  • Accuracy: 0.9713212700580403
  • Precision: 0.9475614228089475
  • Recall: 0.96274217585693
  • F1: 0.9550914803178709

Usage

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 AutoNLP"}' https://api-inference.huggingface.co/models/kSaluja/autonlp-tele_new_5k-557515810

Or Python API:

from transformers import AutoModelForTokenClassification, AutoTokenizer

model = AutoModelForTokenClassification.from_pretrained("kSaluja/autonlp-tele_new_5k-557515810", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("kSaluja/autonlp-tele_new_5k-557515810", use_auth_token=True)

inputs = tokenizer("I love AutoNLP", return_tensors="pt")

outputs = model(**inputs)