Installation

  1. Clone the repository:
git clone https://github.com/abbaouiAchraf/BERT-NER-COLL2003.git
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Open the Jupyter Notebook bert-ner-finetuning.ipynb.

  2. 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
  3. The notebook includes detailed explanations and code snippets to guide you through the entire process.