|
--- |
|
tags: autotrain |
|
language: en |
|
widget: |
|
- text: "I love AutoTrain 🤗" |
|
datasets: |
|
- ismail-lucifer011/autotrain-data-name_all |
|
co2_eq_emissions: 0.8375653425894861 |
|
--- |
|
|
|
# Model Trained Using AutoTrain |
|
|
|
- Problem type: Entity Extraction |
|
- Model ID: 904029577 |
|
- CO2 Emissions (in grams): 0.8375653425894861 |
|
|
|
## Validation Metrics |
|
|
|
- Loss: 0.0035200684797018766 |
|
- Accuracy: 0.9989316041363876 |
|
- Precision: 0.9877899024589919 |
|
- Recall: 0.9933336010601984 |
|
- F1: 0.9905539954046464 |
|
|
|
## 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 AutoTrain"}' https://api-inference.huggingface.co/models/ismail-lucifer011/autotrain-name_all-904029577 |
|
``` |
|
|
|
Or Python API: |
|
|
|
``` |
|
from transformers import AutoModelForTokenClassification, AutoTokenizer |
|
|
|
model = AutoModelForTokenClassification.from_pretrained("ismail-lucifer011/autotrain-name_all-904029577", use_auth_token=True) |
|
|
|
tokenizer = AutoTokenizer.from_pretrained("ismail-lucifer011/autotrain-name_all-904029577", use_auth_token=True) |
|
|
|
inputs = tokenizer("I love AutoTrain", return_tensors="pt") |
|
|
|
outputs = model(**inputs) |
|
``` |