{"id":19152454,"url":"https://github.com/gesiscss/socialcad","last_synced_at":"2025-05-07T05:46:04.047Z","repository":{"id":37216524,"uuid":"404842274","full_name":"gesiscss/socialCAD","owner":"gesiscss","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-04T22:39:14.000Z","size":378,"stargazers_count":3,"open_issues_count":15,"forks_count":1,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-31T06:51:11.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gesiscss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-09T19:14:21.000Z","updated_at":"2023-10-08T13:13:46.000Z","dependencies_parsed_at":"2023-01-24T15:45:31.070Z","dependency_job_id":null,"html_url":"https://github.com/gesiscss/socialCAD","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2FsocialCAD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2FsocialCAD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2FsocialCAD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gesiscss%2FsocialCAD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gesiscss","download_url":"https://codeload.github.com/gesiscss/socialCAD/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249738800,"owners_count":21318504,"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-11-09T08:17:49.641Z","updated_at":"2025-04-19T16:32:36.682Z","avatar_url":"https://github.com/gesiscss.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SocialCAD\nThis repository contains the code for the EMNLP'21 paper, ['How Does Counterfactually Augmented Data Impact Models for Social Computing Constructs?'](https://aclanthology.org/2021.emnlp-main.28/) and the follow-up NAACL'21 paper, ['Counterfactually augmented data and unintended bias: The case of sexism and hate speech detection'](https://aclanthology.org/2022.naacl-main.347/)\n\n\n### to install\npython requirements and resources:\n```shell\npip install -r requirements.txt\n``` \n\n### Data\n- we make the type of counterfactual annotations available in the data folder with the respective ids. Please download the original datasets from their sources. \n\n### to run\n- to train and test models (RQ1): (will automatically generate tables with model performance and store in results): ``train_models.py``\n- to annotate CAD types: ``find and classify diffs.ipynb``\n- to train models on different types of CAD (RQ2): ``train_by_typology.py``\n- to get feature weights (RQ3) and significance tests (RQ1): ``explain model predictions.ipynb``\n- injection analysis (in Appendix): ``injection_percent.py``\n- unintended bias analysis (in the NAACL'22 paper): ``detect unintended biases typology.ipynb``\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesiscss%2Fsocialcad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgesiscss%2Fsocialcad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgesiscss%2Fsocialcad/lists"}