Instructions to use mohammad748/distilbert-conll2003-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohammad748/distilbert-conll2003-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="mohammad748/distilbert-conll2003-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("mohammad748/distilbert-conll2003-ner") model = AutoModelForTokenClassification.from_pretrained("mohammad748/distilbert-conll2003-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signaturec8903ec -
Create README.md
Verified signature# DistilBERT for Named Entity Recognition This project demonstrates fine-tuning **DistilBERT** for Named Entity Recognition (NER) using the **CoNLL-2003** dataset. The model is designed to detect and classify named entities in English text. ## Model Information - **Pretrained Model:** distilbert-base-uncased - **Dataset:** CoNLL-2003 - **Task:** Token Classification (NER) - **Libraries:** PyTorch, Hugging Face Transformers The model recognizes four main entity categories: - **PER:** Person names - **ORG:** Organizations - **LOC:** Locations - **MISC:** Miscellaneous entities The predictions follow the BIO tagging scheme (`B-`, `I-`, and `O`) to distinguish entity boundaries. ## Using the Model The fine-tuned model is available on Hugging Face Hub and can be used for inference with the `transformers` library. ```python from transformers import pipeline # Initialize the NER pipeline ner = pipeline( task="token-classification", model="mohammad748/distilbert-conll2003-ner…2d337cd -
Upload folder using huggingface_hub
Verified signature616ef8f -
initial commit
Verified signature979b9dc