句向量表示《Text and Code Embeddings by Contrastive Pre-Training》

背景

通过学习句子的向量表示达到语义搜索、文本相似度计算

 

方法

正样本:相邻片段

负样本:inbatch其它样本

 

参考资料

https://zhuanlan.zhihu.com/p/496870495

https://zhuanlan.zhihu.com/p/469474178

posted @ 2024-01-15 21:02  xd_xumaomao  阅读(24)  评论(0编辑  收藏  举报