{"id":13578308,"url":"https://github.com/romsto/Inappropriate-Language-Classifier","last_synced_at":"2025-04-05T16:32:13.731Z","repository":{"id":151336238,"uuid":"615370956","full_name":"romsto/Inappropriate-Language-Classifier","owner":"romsto","description":"Online video games need a better system to detect inappropriate language in chat, and using machine learning models could help create a safer and more enjoyable environment for all players.","archived":false,"fork":false,"pushed_at":"2023-04-05T19:45:57.000Z","size":14928,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-05T15:49:56.203Z","etag":null,"topics":["deep-learning","hate-speech-detection","huggingface","machine-learning","natural-language-processing","natural-language-understanding","transformers"],"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/romsto.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}},"created_at":"2023-03-17T14:40:52.000Z","updated_at":"2024-02-14T11:41:21.000Z","dependencies_parsed_at":"2023-06-02T22:00:33.060Z","dependency_job_id":null,"html_url":"https://github.com/romsto/Inappropriate-Language-Classifier","commit_stats":null,"previous_names":["romsto/inappropriate-language-classifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romsto%2FInappropriate-Language-Classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romsto%2FInappropriate-Language-Classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romsto%2FInappropriate-Language-Classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romsto%2FInappropriate-Language-Classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romsto","download_url":"https://codeload.github.com/romsto/Inappropriate-Language-Classifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247366571,"owners_count":20927541,"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","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":["deep-learning","hate-speech-detection","huggingface","machine-learning","natural-language-processing","natural-language-understanding","transformers"],"created_at":"2024-08-01T15:01:29.325Z","updated_at":"2025-04-05T16:32:11.238Z","avatar_url":"https://github.com/romsto.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"# Classification of inappropriate language\n\n## Introduction\n\nThe goal of our study is to compare different ML and DL models on classifying text as *appropriate* or *inappropriate language*.\nThe ultimate goal is to classify in-game chats, but our study will mainly focus on social media texts.\n\n## What is Inappropriate Language ?\nWe define, for the following work, an *Inappropriate Language* as a word or a sentence that contains any of the following:\n- **Profanity** - This includes any language that is considered vulgar, offensive, or obscene. This can include swear words, sexual language, and derogatory terms.\n- **Hate speech** - Hate speech is language that is intended to demean, discriminate against, or incite violence or hatred towards a particular group of people based on their race, ethnicity, gender, religion, sexual orientation, or other characteristic.\n- **Insults** - This includes any language that is intended to insult or belittle someone else. This can include name-calling, personal attacks, or derogatory comments about someone's appearance, abilities, or personality.\n- **Threats** Threats are language that is intended to intimidate or harm another person. This can include physical threats, verbal abuse, or intimidation.\n\n\n\n## Models tested\n\n- Decision Tree\n    - Source: sklearn\n    - Parameters: None\n- Random Forest\n    - Source: sklearn\n    - Parameters: None\n- SVC (SVM)\n    - Source: sklearn\n    - Parameters: None\n- LSTM\n    - Source: Tensorflow\n    - LSTM -\u003e Dense layer (In -\u003e Out (2))\n- Transformer (mobile BERT / distil BERT)\n    - Source: Huggingface\n    - Zero Shot Classification\n\n\n## Our Dataset\n\nOur dataset is a merge of multiple social media Hate Speech datasets.\n\n### Columns:\n\n- `Text`: text to analyze\n- `Class`:\n    - `0` - Appropriate\n    - `1` - Inappropriate\n\n### Data Sources:\n- Hate Speech and Offensive Language (https://github.com/t-davidson/hate-speech-and-offensive-language/raw/master/data/labeled_data.csv) [tweets]\n- Measuring Hate Speech (https://huggingface.co/datasets/ucberkeley-dlab/measuring-hate-speech) [social media Reddit Twitter and other]\n- https://www.kaggle.com/competitions/detecting-insults-in-social-commentary/\n- Jibes and Delights https://github.com/ravsodhi/jibes-and-delights (Insults and Compliments targeting INDIVIDUALS) https://aclanthology.org/2021.woah-1.14.pdf\n- https://www.kaggle.com/competitions/jigsaw-toxic-comment-classification-challenge/ \n\n### Details:\n- English only\n- From social media comments\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromsto%2FInappropriate-Language-Classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromsto%2FInappropriate-Language-Classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromsto%2FInappropriate-Language-Classifier/lists"}