Token Classification
Transformers
Safetensors
English
roberta
named-entity-recognition
ner
conll2003
Instructions to use ullahhafeez321/roberta-conll2003-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ullahhafeez321/roberta-conll2003-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ullahhafeez321/roberta-conll2003-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ullahhafeez321/roberta-conll2003-ner") model = AutoModelForTokenClassification.from_pretrained("ullahhafeez321/roberta-conll2003-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_info.json from ullahhafeez321/roberta-conll2003-ner: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/ullahhafeez321/roberta-conll2003-ner/resolve/main/training_info.json
- Command line
-
hf download hf://ullahhafeez321/roberta-conll2003-ner/training_info.json
-
curl -L -o training_info.json https://huggingface.co/ullahhafeez321/roberta-conll2003-ner/resolve/main/training_info.json
886 Bytes
| { | |
| "task": "Named Entity Recognition (token classification)", | |
| "dataset": "lhoestq/conll2003", | |
| "base_model": "FacebookAI/roberta-base", | |
| "model_architecture": "roberta", | |
| "labels": [ | |
| "O", | |
| "B-PER", | |
| "I-PER", | |
| "B-ORG", | |
| "I-ORG", | |
| "B-LOC", | |
| "I-LOC", | |
| "B-MISC", | |
| "I-MISC" | |
| ], | |
| "number_of_labels": 9, | |
| "max_sequence_length": 256, | |
| "train_examples": 14041, | |
| "validation_examples": 3250, | |
| "test_examples": 3453, | |
| "validation_metrics": { | |
| "eval_loss": 0.04585767164826393, | |
| "eval_precision": 0.9423943897144765, | |
| "eval_recall": 0.9498485358465163, | |
| "eval_f1": 0.9461067806554354, | |
| "eval_accuracy": 0.99069350881975 | |
| }, | |
| "test_metrics": { | |
| "test_loss": 0.153057262301445, | |
| "test_precision": 0.8865162734630618, | |
| "test_recall": 0.9114730878186968, | |
| "test_f1": 0.8988214753382803, | |
| "test_accuracy": 0.9791105846882739 | |
| } | |
| } |