Named Entity Recognition Project for Turkish Text
EduNER-TR is a natural language processing project developed for identifying named entities in Turkish texts. This project automatically detects special entities such as person names, location names, and organization names in text.
This project was initiated to address specific needs in Turkish natural language processing, particularly in the educational domain:
-
Lack of Turkish NER Resources: The absence of ready-made training datasets for Turkish language created a need to develop an original solution in this field.
-
Educational Data Processing: In educational institutions, automatically extracting student and program information (name, surname, university, department, number) from texts is important to speed up data processing and reduce human errors.
-
Research Contributions: The project enriches NER resources and research for the Turkish language, contributing to the field of Turkish NLP.
-
Data Mining and Automation: The system enables extracting structured data from unstructured texts and facilitates automatic processing of academic documents and records.
As stated in the project report:
"The developed NER system provides significant contributions in the following areas: Turkish NLP Research, Educational Data Processing, Data Mining, and Document Automation."
The model achieved impressive performance metrics, with validation accuracy improving from 76.75% to 99.18% after optimization of the label structure.
Follow these steps to run the project:
- Clone or download the project:
git clone [repo-url]
cd EduNER-TR- Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate # For Linux/Mac
# or
.venv\Scripts\activate # For Windows
pip install -r requirements.txtTo run the project from the console:
python ner_aplication.pyThis command will load the NER model and make it ready to process texts.
To run the data processing steps:
python 01_data_proces.py
python 02_vocabulary_builder.py
python 03_data_processor.py
python 04_training_modell.pyTo run the web interface:
- Copy the
best_model.ptfile to theWebfolder. - Start the web server:
cd Web
python app.pyYou can access the web interface by going to http://localhost:5000 in your browser.
Note: The necessary files are already in the Web folder.
You can also access the live demo at: ner.akpinar.dev
The trained model file (best_model.pt) can be downloaded by following these steps:
- Download the
GEN-AI.zipfile from Google Drive link. - Extract the ZIP file and locate the
best_model.ptfile. - Place the file in one of the following locations depending on your use case:
- For console application: In the project root directory (
EduNER-TR/) - For web interface: In the
Web/folder - For using the old model version: Copy to the
Versions/V1directory and runmodel_uygulama.py.
- For console application: In the project root directory (
Note: The ZIP file contains the best model trained so far. The file size is large (2.9 GB), so it's not included in the GitHub repository.