Installation
- Clone the repository:
git clone https://github.com/abbaouiAchraf/BERT-NER-COLL2003.git
- Install the required dependencies:
pip install -r requirements.txt
Usage
-
Open the Jupyter Notebook
bert-ner-finetuning.ipynb. -
Follow the step-by-step instructions provided in the notebook to:
- Load and preprocess the CoNLL-2003 dataset
- Set up the BERT model and tokenizer
- Define the data loaders and the training/evaluation loop
- Fine-tune the BERT model
- Evaluate the model’s performance
- Make predictions on new text data
-
The notebook includes detailed explanations and code snippets to guide you through the entire process.