{"id":30848310,"url":"https://github.com/nyx1311/toxicity-detector-using-bilstm","last_synced_at":"2026-04-14T14:31:19.605Z","repository":{"id":312509628,"uuid":"1047741562","full_name":"Nyx1311/Toxicity-Detector-using-BiLSTM","owner":"Nyx1311","description":"🚀 What we built: An AI-powered Women’s Safety \u0026 Well-Being Detector — a web app that flags multiple forms of online abuse in real time and offers tools for emotional recovery.  📊 Under the hood:  BiLSTM + Word2Vec embeddings for deep, context-aware detection  Trained on 21K+ labeled comments across 7 toxicity categories  Built with Python, Tensor","archived":false,"fork":false,"pushed_at":"2025-08-31T05:56:36.000Z","size":38043,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-31T07:11:09.151Z","etag":null,"topics":["epoch","genism","gpu","keras-tensorflow","matplotlib","model","nlp","nlp-machine-learning","nlpaug-textual","numpy","pandas","pandas-library","python3","streamlit","tensorflow","word2vec"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nyx1311.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T05:47:44.000Z","updated_at":"2025-08-31T06:02:06.000Z","dependencies_parsed_at":"2025-08-31T07:21:21.375Z","dependency_job_id":null,"html_url":"https://github.com/Nyx1311/Toxicity-Detector-using-BiLSTM","commit_stats":null,"previous_names":["nyx1311/toxicity-detector-using-bilstm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Nyx1311/Toxicity-Detector-using-BiLSTM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyx1311%2FToxicity-Detector-using-BiLSTM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyx1311%2FToxicity-Detector-using-BiLSTM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyx1311%2FToxicity-Detector-using-BiLSTM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyx1311%2FToxicity-Detector-using-BiLSTM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nyx1311","download_url":"https://codeload.github.com/Nyx1311/Toxicity-Detector-using-BiLSTM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyx1311%2FToxicity-Detector-using-BiLSTM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273990203,"owners_count":25203290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["epoch","genism","gpu","keras-tensorflow","matplotlib","model","nlp","nlp-machine-learning","nlpaug-textual","numpy","pandas","pandas-library","python3","streamlit","tensorflow","word2vec"],"created_at":"2025-09-07T03:08:17.920Z","updated_at":"2026-04-14T14:31:19.567Z","avatar_url":"https://github.com/Nyx1311.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Toxicity Detector using BiLSTM\n\nA deep learning model to classify the degree of toxicity in user comments using a **Bidirectional LSTM (BiLSTM)** network.  \nThis project aims to automatically detect toxic, offensive, or harmful language in text, making online communities safer.\n\n---\n\n## ✨ Features\n- Preprocessing pipeline for raw text (cleaning, tokenization, padding).\n- Word embeddings for rich semantic representation.\n- **BiLSTM-based classifier** for sequence modeling.\n- Trained on labeled comment datasets for toxicity detection.\n- Supports multiple levels of toxicity classification (toxic, severe toxic, obscene, threat, insult, identity hate).\n\n---\n\n## ⚙️ Tech Stack\n- **Python 3**\n- **TensorFlow / Keras**\n- **BiLSTM (Bidirectional Long Short-Term Memory)**\n- **NumPy, Pandas** for data handling\n- **Matplotlib / Seaborn** for visualization\n- **Streamlit** for deployment as a simple web app\n\n\n---\n\n## 🚀 How to Run\n\n### 1. Clone the repository\n```bash\ngit clone https://github.com/Nyx1311/Toxicity-Detector-using-BiLSTM.git\ncd Toxicity-Detector-using-BiLSTM\n````\n\n### 2. Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 3. Train the model\n\n```bash\njupyter notebook Comment_Toxicity_using_BiLSTM.ipynb\n```\n\n### 4. Run the web app\n\n```bash\nstreamlit run toxicity_app_streamlit.py\n```\n\n---\n\n## 📊 Results\n\n* Achieved strong accuracy on multi-label toxicity classification.\n* BiLSTM captures context from both directions, improving prediction quality compared to vanilla LSTM.\n\n*(Insert confusion matrix, accuracy/loss plots here.)*\n\n---\n\n## 📌 Future Improvements\n\n* Integrate pre-trained embeddings (e.g., GloVe, fastText).\n* Explore Transformer-based models (BERT, RoBERTa).\n* Deploy a production-ready API.\n\n---\n\n## 🧑‍💻 Author\n\nDeveloped by **[Nyx1311](https://github.com/Nyx1311)**.\n\n`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyx1311%2Ftoxicity-detector-using-bilstm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyx1311%2Ftoxicity-detector-using-bilstm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyx1311%2Ftoxicity-detector-using-bilstm/lists"}