The primary goal of this project is to develop a user-friendly desktop application capable of detecting toxic content on social media platforms, particularly Twitter and YouTube.
In this project, we combined trained deep learning models with an interactive interface, allowing users to:
With this application, we aim to:
We used the following publicly available Turkish datasets for training and evaluation:
We fine-tuned the following BERT model for Turkish:
| Model Name | Model Link | Features |
|---|---|---|
| FastText Classifier | Drive | Lightweight, fast predictions |
| BERT Fine-tuned Model | Drive | High accuracy, contextual analysis |
| BERT LSTM Model | Drive | High accuracy, contextual analysis |
| Extended Bert LSTM Model | Drive | Transfer learned from BERT LSTM model |


Clone the repository:
git clone https://github.com/mbahadirk/Offensive-Text-Classification
Navigate to the project directory:
cd Offensive-Text-Classification
Install the required dependencies:
pip install -r requirements.txt
Install the model you want to use with UI. if you didn't install all models it raises alerts but no problem! go to models
Install the required tokenizer:
python -c "from transformers import AutoTokenizer; tokenizer = AutoTokenizer.from_pretrained('dbmdz/bert-base-turkish-uncased'); tokenizer.save_pretrained('./models/embeddings/bert-turkish-tokenizer')"
Run the application:
python UI_ELEMENTS/main_app.py
Jupyter Notebook
91.9%
Python
8.1%
The primary goal of this project is to develop a user-friendly desktop application capable of detecting toxic content on social media platforms, particularly Twitter and YouTube.
In this project, we combined trained deep learning models with an interactive interface, allowing users to:
With this application, we aim to:
We used the following publicly available Turkish datasets for training and evaluation:
We fine-tuned the following BERT model for Turkish:
| Model Name | Model Link | Features |
|---|---|---|
| FastText Classifier | Drive | Lightweight, fast predictions |
| BERT Fine-tuned Model | Drive | High accuracy, contextual analysis |
| BERT LSTM Model | Drive | High accuracy, contextual analysis |
| Extended Bert LSTM Model | Drive | Transfer learned from BERT LSTM model |


Clone the repository:
git clone https://github.com/mbahadirk/Offensive-Text-Classification
Navigate to the project directory:
cd Offensive-Text-Classification
Install the required dependencies:
pip install -r requirements.txt
Install the model you want to use with UI. if you didn't install all models it raises alerts but no problem! go to models
Install the required tokenizer:
python -c "from transformers import AutoTokenizer; tokenizer = AutoTokenizer.from_pretrained('dbmdz/bert-base-turkish-uncased'); tokenizer.save_pretrained('./models/embeddings/bert-turkish-tokenizer')"
Run the application:
python UI_ELEMENTS/main_app.py
Jupyter Notebook
91.9%
Python
8.1%