Downloads · 30 days
9
17% of all-time downloads
MrRobson9/gpt2-ner-conll2003-english
gpt2-ner-conll2003-english is a token classification model from MrRobson9. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of GPT-2 on the CoNLL2003 dataset for Named Entity Recognition (NER) in English. The CoNLL2003 dataset contains four types of named entities: Person (PER), Location (LOC), Organizati…
Downloads · 30 days
9
17% of all-time downloads
All-time downloads
52
Public
Parameters
124M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt996 MB · 67%
From the Hugging Face model README
This model is a fine-tuned version of GPT-2 on the CoNLL2003 dataset for Named Entity Recognition (NER) in English. The CoNLL2003 dataset contains four types of named entities: Person (PER), Location (LOC), Organization (ORG), and Miscellaneous (MISC).
This model is ideal for tasks that require identifying and classifying named entities within English text, such as:
To use this model in your code, you can load it via Hugging Face’s Transformers library:
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("MrRobson9/gpt2-ner-conll2003-english")
model = AutoModelForTokenClassification.from_pretrained("MrRobson9/gpt2-ner-conll2003-english")
nlp_ner = pipeline("ner", model=model, tokenizer=tokenizer)
result = nlp_ner("John lives in New York and works for the United Nations.")
print(result)
| accuracy | precision | recall | f1-score |
|---|---|---|---|
| 0.973 | 0.783 | 0.840 | 0.810 |
This model is licensed under the same terms as the GPT-2 model and the CoNLL2003 dataset. Please ensure compliance with all respective licenses when using this model.