Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bojone/CoSENT
比Sentence-BERT更有效的句向量方案
https://github.com/bojone/CoSENT
Last synced: 3 months ago
JSON representation
比Sentence-BERT更有效的句向量方案
- Host: GitHub
- URL: https://github.com/bojone/CoSENT
- Owner: bojone
- Created: 2022-01-06T08:18:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T08:18:39.000Z (almost 2 years ago)
- Last Synced: 2024-06-24T05:36:57.624Z (5 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 346
- Watchers: 5
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- StarryDivineSky - bojone/CoSENT - BERT更有效的句向量方案.优化cos值的新方案**CoSENT**(Cosine Sentence)。[实验显示](https://kexue.fm/archives/8847),CoSENT在收敛速度和最终效果上普遍都比InferSent和Sentence-BERT要好。 (文本匹配 文本检索 文本相似度 / 其他_文本生成、文本对话)
README
# CoSENT
比Sentence-BERT更有效的句向量方案## 介绍
- 博客:https://kexue.fm/archives/8847
- 数据:https://github.com/bojone/BERT-whitening/tree/main/chn## 效果
train训练、test测试:
| | ATEC | BQ | LCQMC | PAWSX | STS-B | Avg |
| :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| BERT+CoSENT | **49.74** | **72.38** | 78.69 | **60.00** | **80.14** | **68.19** |
| Sentence-BERT | 46.36 | 70.36 | **78.72** | 46.86 | 66.41 | 61.74 |
| RoBERTa+CoSENT | **50.81** | **71.45** | **79.31** | **61.56** | **81.13** | **68.85** |
| Sentence-RoBERTa | 48.29 | 69.99 | 79.22 | 44.10 | 72.42 | 62.80 |NLI训练、test测试:
| | ATEC | BQ | LCQMC | PAWSX | STS-B | Avg |
| :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| BERT+CoSENT | **28.93** | 41.84 | **66.07** | **20.49** | 73.91 | **46.25** |
| Sentence-BERT | 28.19 | **42.73** | 64.98 | 15.38 | **74.88 | 45.23 |
| RoBERTa+CoSENT | 31.84 | **46.65** | **68.43** | **20.89** | **74.37** | **48.43** |
| Sentence-RoBERTa | **31.87** | 45.60 | 67.89 | 15.64 | 73.93 | 46.99 |## 环境
需要`bert4keras >= 0.10.8`。个人实验环境是tensorflow 1.15 + keras 2.3.1 + bert4keras 0.10.8。
## 其他
- PyTorch版本(非官方):https://github.com/shawroad/CoSENT_Pytorch
- PyTorch版本(非官方):https://github.com/xiangking/PyTorch_CoSENT## 交流
QQ交流群:808623966,微信群请加机器人微信号spaces_ac_cn