{"id":13753261,"url":"https://github.com/thunlp/KnowledgeablePromptTuning","last_synced_at":"2025-05-09T20:35:08.338Z","repository":{"id":37312605,"uuid":"405859513","full_name":"thunlp/KnowledgeablePromptTuning","owner":"thunlp","description":"kpt code","archived":false,"fork":false,"pushed_at":"2023-04-16T16:20:23.000Z","size":216,"stargazers_count":207,"open_issues_count":10,"forks_count":22,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T20:29:02.557Z","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/thunlp.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":"2021-09-13T06:33:57.000Z","updated_at":"2025-04-14T15:49:14.000Z","dependencies_parsed_at":"2024-08-03T09:15:51.232Z","dependency_job_id":null,"html_url":"https://github.com/thunlp/KnowledgeablePromptTuning","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/thunlp%2FKnowledgeablePromptTuning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunlp%2FKnowledgeablePromptTuning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunlp%2FKnowledgeablePromptTuning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunlp%2FKnowledgeablePromptTuning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thunlp","download_url":"https://codeload.github.com/thunlp/KnowledgeablePromptTuning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253321842,"owners_count":21890476,"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-08-03T09:01:19.279Z","updated_at":"2025-05-09T20:35:03.298Z","avatar_url":"https://github.com/thunlp.png","language":"Python","funding_links":[],"categories":["文本分类","Python"],"sub_categories":[],"readme":"\n# KPT source code\n\nHere is the source code for our ACL 2022 paper \n[Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classification](https://arxiv.org/abs/2108.02035)\n\n## install openprompt \n\n\nPlease install via git clone. This helps keep the dataset downloading scripts.\n\n```bash\ngit clone git@github.com:thunlp/OpenPrompt.git\ncd OpenPrompt\npython setup.py install\n```\n\n\n## Download the dataset\n```\ncd OpenPrompt/datasets\nbash download_text_classification.sh\n```\n\n## Run the scripts\nfor fewshot experiment\n```\nbash scripts/run_fewshot.sh \n```\nfor zeroshot experiment\n```\nbash scripts/run_zeroshot.sh\n```\nfor pilot experiment in appendix\n```\nbash scripts/run_pilot.sh\n```\n\nThe possible arguments in the scripts are in the comment of the scripts. \nPlease choose the combination according to your need.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunlp%2FKnowledgeablePromptTuning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunlp%2FKnowledgeablePromptTuning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunlp%2FKnowledgeablePromptTuning/lists"}