Instructions to use Shenzy2/autotrain-tk-1181244086 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shenzy2/autotrain-tk-1181244086 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Shenzy2/autotrain-tk-1181244086")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Shenzy2/autotrain-tk-1181244086") model = AutoModelForTokenClassification.from_pretrained("Shenzy2/autotrain-tk-1181244086") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Error:"tags" must be an array
Model Trained Using AutoTrain
- Problem type: Entity Extraction
- Model ID: 1181244086
- CO2 Emissions (in grams): 0.004663044473485149
Validation Metrics
- Loss: 0.5532978773117065
- Accuracy: 0.8263097949886105
- Precision: 0.5104166666666666
- Recall: 0.4681528662420382
- F1: 0.4883720930232558
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/Shenzy2/autotrain-tk-1181244086
Or Python API:
from transformers import AutoModelForTokenClassification, AutoTokenizer
model = AutoModelForTokenClassification.from_pretrained("Shenzy2/autotrain-tk-1181244086", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("Shenzy2/autotrain-tk-1181244086", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)
- Downloads last month
- 2