This project demonstrates a Named Entity Recognition (NER) system using a Support Vector Machine (SVM) classifier. The system identifies named entities in text, such as names of people and locations.
-
Clone the repository:
git clone https://github.com/ravindramohith/Named-Entity-Recognition.git cd Named-Entity-Recognition
-
Install the required packages:
pip install -r requirements.txt
-
Install additional dependencies:
pip install gradio==3.48.0
pip install typing-extensions==4.5.0
-
Run the Jupyter Notebook: Open the NER.ipynb notebook in Jupyter and run all cells to train the model and perform inference.
-
Inference Example: The notebook includes an example of how to use the trained model to annotate a sentence with named entities.
-
Gradio Interface: The notebook sets up a Gradio interface to interact with the NER model. You can enter a sentence, and the model will annotate each token as a named entity (1) or not (0).
-
Evaluation: The notebook also includes a section on evaluating the model's performance using precision, recall, and F1-score metrics.
-
Data Visualization: There are visualizations provided to understand the distribution of named entities in the dataset and the model's predictions.
-
Model Saving and Loading: Instructions on how to save the trained model and load it for future use are also included in the notebook.