How saad056/cyberpolice works
This repository is a research prototype for detecting cyberbullying in Twitter text. Its documented main workflow is to train neural models on the bundled Twitter dataset and generate precision, recall, and F1 results. The model factory provides several architectures, including the README’s LSTM and bidirectional-attention variants, plus a CNN. The repository also contains embedding and data-analysis notebooks; their implementation details and connections are not shown in the sampled source, so they are represented without inferred flows.
Main entry points: models.py Model selector · DNNs.ipynb DNN training · twitter_data.pkl Twitter dataset
Components 10
Data and exploration
- Twitter dataset
data/twitter_data.pkl - Data analysis
data_analysis/DataAnalysisTwitter.ipynb - Embedding notebook
Embedding.ipynb
Modeling
- DNN training
DNNs.ipynb - Model selector
models.py - LSTM models
models.py - BiLSTM attention
models.py - CNN model
models.py
Evaluation
- Precision, recall, F1
DNNs.ipynb
Other components
- Researcher
Connections 7
- Researcher → DNN training: runs training
README.md - Twitter dataset → DNN training: trains on
README.md - DNN training → Model selector: uses architectures
README.md - Model selector → LSTM models: selects
models.py - Model selector → BiLSTM attention: selects
models.py - Model selector → CNN model: selects
models.py - DNN training → Precision, recall, F1: generates metrics
README.md