{"id":20114866,"url":"https://github.com/gatenlp/cantm","last_synced_at":"2025-08-10T07:18:12.150Z","repository":{"id":145770838,"uuid":"321724324","full_name":"GateNLP/CANTM","owner":"GateNLP","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-12T15:32:58.000Z","size":2576,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-06T13:45:36.021Z","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/GateNLP.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}},"created_at":"2020-12-15T16:26:25.000Z","updated_at":"2023-10-11T15:47:56.000Z","dependencies_parsed_at":"2023-10-20T21:10:49.196Z","dependency_job_id":null,"html_url":"https://github.com/GateNLP/CANTM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GateNLP/CANTM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FCANTM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FCANTM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FCANTM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FCANTM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GateNLP","download_url":"https://codeload.github.com/GateNLP/CANTM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FCANTM/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269691209,"owners_count":24459990,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-13T18:32:39.462Z","updated_at":"2025-08-10T07:18:11.890Z","avatar_url":"https://github.com/GateNLP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CANTM\nImplementation of Classification Aware Neural Topic Model (CANTM) and application for misinformation category classification\nPlease cite the following paper in your publication involving this work:\nXingyi Song, Johann Petrak, Ye Jiang, Iknoor Singh, Diana Maynard, Kalina Bontcheva, Classification Aware Neural Topic Model and its Application on a New COVID-19 Disinformation Corpus, In arXiv:2006.03354, 2020.\n\n\n## Install\n* Requirement:\n  * miniconda: https://docs.conda.io/en/latest/miniconda.html\n* Install conda environment: conda env create -f environmentGPU.yml\n* Active conda environment: conda activate wvmisinfoGPU\n* Download NLTK and BERT models: python getPerpare.py\n\n## Run Experiments:\n### Covid Exp\n* Get COVID data: \n```\ncd wvCovidData\nbash getCovidData.sh\n```\n* Run CANTM: bash runCANTM_covid.sh\n* Run BERT: bash runBert_covid.sh\n* Run NVDM: runNVDM_covid.sh\n* Run NVDM_bert: runNVDM_bert_covid.sh\n* Run LDA: runLDA_covid.sh\n\n\n### Update topics with unlabelled data:\n* Update classification-aware topic on COVID (note require `bash runCANTM_covid.sh' first), the latest unlabelled data not included please contact author. for the data: bash updateCovid.sh \n\n### Run Covid data on SCHOLAR:\n* Perpare data for SCHOLAR: bash outputForScholar.sh \n* The Scholar ready data format (splited in 5 folds) will be in 'testScholarfold'\n* Please follow the instruction in Scholar to run the experiment\n* Patched version of 'run_scholar.py' in Scholar_patch/, that output f1 score. (Copy to original Scholar folder to use)\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatenlp%2Fcantm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgatenlp%2Fcantm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatenlp%2Fcantm/lists"}