CoolFace
Modelpublic

MAsterIt/ClassifyToken

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes11downloads
README.md49 linesDownload Raw Back to root
1---2tags:3- autotrain4- token-classification5language:6- en7widget:8- text: "I love AutoTrain 🤗"9datasets:10- Mulik/autotrain-data-theclassify11co2_eq_emissions:12  emissions: 0.3642699963910200313---14 15# Model Trained Using AutoTrain16 17- Problem type: Entity Extraction18- Model ID: 4797211703219- CO2 Emissions (in grams): 0.364320 21## Validation Metrics22 23- Loss: 0.12924- Accuracy: 1.00025- Precision: 1.00026- Recall: 1.00027- F1: 1.00028 29## Usage30 31You can use cURL to access this model:32 33```34$ 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/Mulik/autotrain-theclassify-4797211703235```36 37Or Python API:38 39```40from transformers import AutoModelForTokenClassification, AutoTokenizer41 42model = AutoModelForTokenClassification.from_pretrained("Mulik/autotrain-theclassify-47972117032", use_auth_token=True)43 44tokenizer = AutoTokenizer.from_pretrained("Mulik/autotrain-theclassify-47972117032", use_auth_token=True)45 46inputs = tokenizer("I love AutoTrain", return_tensors="pt")47 48outputs = model(**inputs)49```