{"id":13754242,"url":"https://github.com/bojone/CoSENT","last_synced_at":"2025-05-09T22:31:31.699Z","repository":{"id":37738204,"uuid":"445093243","full_name":"bojone/CoSENT","owner":"bojone","description":"比Sentence-BERT更有效的句向量方案","archived":false,"fork":false,"pushed_at":"2022-11-09T08:18:39.000Z","size":38,"stargazers_count":368,"open_issues_count":3,"forks_count":25,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-07T11:11:10.421Z","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/bojone.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}},"created_at":"2022-01-06T08:18:05.000Z","updated_at":"2025-04-07T07:25:23.000Z","dependencies_parsed_at":"2022-07-12T16:44:05.779Z","dependency_job_id":null,"html_url":"https://github.com/bojone/CoSENT","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/bojone%2FCoSENT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bojone%2FCoSENT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bojone%2FCoSENT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bojone%2FCoSENT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bojone","download_url":"https://codeload.github.com/bojone/CoSENT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253335688,"owners_count":21892713,"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:51.728Z","updated_at":"2025-05-09T22:31:31.201Z","avatar_url":"https://github.com/bojone.png","language":"Python","funding_links":[],"categories":["文本匹配 文本检索 文本相似度"],"sub_categories":["其他_文本生成、文本对话"],"readme":"# CoSENT\n比Sentence-BERT更有效的句向量方案\n\n## 介绍\n\n- 博客：https://kexue.fm/archives/8847\n- 数据：https://github.com/bojone/BERT-whitening/tree/main/chn\n\n## 效果\n\ntrain训练、test测试：\n| | ATEC | BQ | LCQMC | PAWSX | STS-B | Avg |\n| :-: | :-: | :-: | :-: | :-: | :-: | :-: |\n| BERT+CoSENT | **49.74** | **72.38** | 78.69 | **60.00** | **80.14** | **68.19** |\n| Sentence-BERT | 46.36 | 70.36 | **78.72** | 46.86 | 66.41 | 61.74 |\n| RoBERTa+CoSENT | **50.81** | **71.45** | **79.31** | **61.56** | **81.13** | **68.85** |\n| Sentence-RoBERTa | 48.29 | 69.99 | 79.22 | 44.10 | 72.42 | 62.80 |\n\nNLI训练、test测试：\n| | ATEC | BQ | LCQMC | PAWSX | STS-B | Avg |\n| :-: | :-: | :-: | :-: | :-: | :-: | :-: |\n| BERT+CoSENT | **28.93** | 41.84 | **66.07** | **20.49** | 73.91 | **46.25** |\n| Sentence-BERT | 28.19 | **42.73** | 64.98 | 15.38 | **74.88 | 45.23 |\n| RoBERTa+CoSENT | 31.84 | **46.65** | **68.43** | **20.89** | **74.37** | **48.43** |\n| Sentence-RoBERTa | **31.87** | 45.60 | 67.89 | 15.64 | 73.93 | 46.99 |\n\n\n## 环境\n\n需要`bert4keras \u003e= 0.10.8`。个人实验环境是tensorflow 1.15 + keras 2.3.1 + bert4keras 0.10.8。\n\n## 其他\n\n- PyTorch版本（非官方）：https://github.com/shawroad/CoSENT_Pytorch\n- PyTorch版本（非官方）：https://github.com/xiangking/PyTorch_CoSENT\n\n## 交流\nQQ交流群：808623966，微信群请加机器人微信号spaces_ac_cn\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbojone%2FCoSENT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbojone%2FCoSENT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbojone%2FCoSENT/lists"}