{"id":23139470,"url":"https://github.com/jmisilo/offensive-language-classificator","last_synced_at":"2025-06-12T17:08:40.338Z","repository":{"id":175620514,"uuid":"507339731","full_name":"jmisilo/offensive-language-classificator","owner":"jmisilo","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-10T19:34:38.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T10:12:39.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jmisilo.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}},"created_at":"2022-06-25T14:56:50.000Z","updated_at":"2022-07-12T18:19:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"dfc81f4e-2b72-460c-b958-97715b961311","html_url":"https://github.com/jmisilo/offensive-language-classificator","commit_stats":null,"previous_names":["jmisilo/offensive-language-classificator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmisilo/offensive-language-classificator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Foffensive-language-classificator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Foffensive-language-classificator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Foffensive-language-classificator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Foffensive-language-classificator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmisilo","download_url":"https://codeload.github.com/jmisilo/offensive-language-classificator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmisilo%2Foffensive-language-classificator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509427,"owners_count":22868834,"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":[],"created_at":"2024-12-17T13:14:17.674Z","updated_at":"2025-06-12T17:08:40.312Z","avatar_url":"https://github.com/jmisilo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Offensive Language Classificator API\n\nThe project aims to create a simple API that will allow communication with a fine-tuned model and classifications of the type of tweets/posts - OFFENSIVE or NOT OFFENSIVE. While working on the project, an experiment tracking tool - [W\u0026B](https://wandb.ai/) was used to track performance of the model. Model was trained using a GPU from [Google Colab](https://colab.research.google.com/).\n\n## Results\n\nOn the validation set, the model achieved an accuracy of 81.57%, precision of 68.92\n% and recall of 74.27%.\n\n## How to run project?\n\nClone the repository with the command\n\n```\ngit clone https://github.com/jmisilo/offensive-language-classificator\n```\n\nThen go to the directory and install depedencies:\n\n```\ncd offensive-language-classificator\npip install -r requirements.txt\n```\n\nTo run the following command:\n\n```\nuvicorn src.app:app --port \u003cPORT\u003e\n```\n\n## API documentation\n\n[Documentation](docs/api_docs.md)\n\n## Data\n\n[Download Data](https://sites.google.com/site/offensevalsharedtask/olid)\n\n[Paper Reference:](https://aclanthology.org/N19-1144.pdf)\n\nPredicting the Type and Target of Offensive Posts in Social Media - Zampieri, Marcos and Malmasi, Shervin and Nakov, Preslav and Rosenthal, Sara and Farra, Noura and Kumar, Ritesh\n\n## Model\n\n[Hugging Face Model Page](https://huggingface.co/siebert/sentiment-roberta-large-english)\n\n[Paper Reference:](https://www.semanticscholar.org/paper/More-than-a-Feeling%3A-Benchmarks-for-Sentiment-Heitmann-Siebert/bfe8c0617ca61496e224380f896c0990fdbf542d)\n\nMore than a feeling: Accuracy and Application of Sentiment Analysis - Hartmann, Jochen and Heitmann, Mark and Siebert, Christian and Schamp, Christina","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmisilo%2Foffensive-language-classificator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmisilo%2Foffensive-language-classificator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmisilo%2Foffensive-language-classificator/lists"}