|
--- |
|
tags: autonlp |
|
language: bn |
|
widget: |
|
- text: "I love AutoNLP 🤗" |
|
datasets: |
|
- albertvillanova/autonlp-data-baselines-wikiann-entity_extraction |
|
--- |
|
|
|
# Model Trained Using AutoNLP |
|
|
|
- Problem type: Entity Extraction |
|
- Model ID: 1341171 |
|
|
|
## Validation Metrics |
|
|
|
- Loss: 0.13715848326683044 |
|
- Accuracy: 0.9730101212045483 |
|
- Precision: 0.0 |
|
- Recall: 0.0 |
|
- F1: 0.0 |
|
|
|
## 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/albertvillanova/autonlp-baselines-wikiann-entity_extraction-1341171 |
|
``` |
|
|
|
Or Python API: |
|
|
|
``` |
|
from transformers import AutoModelForTokenClassification, AutoTokenizer |
|
|
|
model = AutoModelForTokenClassification.from_pretrained("albertvillanova/autonlp-baselines-wikiann-entity_extraction-1341171", use_auth_token=True) |
|
|
|
tokenizer = AutoTokenizer.from_pretrained("albertvillanova/autonlp-baselines-wikiann-entity_extraction-1341171", use_auth_token=True) |
|
|
|
inputs = tokenizer("I love AutoNLP", return_tensors="pt") |
|
|
|
outputs = model(**inputs) |
|
``` |