SimCSE-Chinese-Pytorch SimCSE在中文上的复现,无监督 + 有监督 1. 背景 最近看了SimCSE这篇论文,便对论文做了pytorch版的复现和评测 论文:https://arxiv.org/pdf/2104.08821.pdf 官方:https://github.com/princeton-nlp/SimCSE 2. 文件 >datasets 数据集文件夹>cnsd-snli>STS-B>pretrained_model 各种预训练模...
saved_model .gitignore LICENSE README.md data_preprocess.py simcse_sup.py simcse_unsup.py README MIT license SimCSE-Chinese-Pytorch SimCSE在中文上的复现,无监督 + 有监督 1. 背景 最近看了SimCSE这篇论文,便对论文做了pytorch版的复现和评测 ...
SimCSE pytorch.https://github.com/zhengyanzhao1997/NLP-model/tree/main/model/model/Torch_model/SimCSE-Chinese SimCSE的loss实现源码解读.https://zhuanlan.zhihu.com/p/377862950 SimCSE简介以及核心代码详解——无监督文本向量抽取.https://zhuanlan.zhihu.com/p/462763973 in-batch negative sampling https://g...
tensorflow tf2 chinese bert sentence-embeddings simcse Updated Apr 5, 2022 Python MoleculeTransformers / smiles-featurizers Star 16 Code Issues Pull requests Extract Molecular SMILES embeddings from language models pre-trained with various objectives architectures. pytorch embeddings fingerprints ...
https://github.com/yanqiangmiffy/SimCSE-Chinese-Pytorchgithub.com/yanqiangmiffy/SimCSE-Chinese-Pytorch 数据集下载: https://github.com/pluto-junzeng/CNSDgithub.com/pluto-junzeng/CNSD
SimCSE pytorch.https://github.com/zhengyanzhao1997/NLP-model/tree/main/model/model/Torch_model/SimCSE-Chinese SimCSE的loss实现源码解读.https://zhuanlan.zhihu.com/p/377862950 SimCSE简介以及核心代码详解——无监督文本向量抽取.https://zhuanlan.zhihu.com/p/462763973...
在苏剑林开源的pytorch版代码中,eval.py文件中损失函数simcse_loss的写法很有意思,在其博客(中文任务还是SOTA吗?我们给SimCSE补充了一些实验)中,损失函数被描述为: -\sum_{i=1}^{N}{\sum_{\alpha=0,1}^{}{log\frac{e^{cos(h_{i}^{\alpha},h_{i}^{1-\alpha})/\tau}}{\sum_{j=1,j\ne i...
pip install torch==1.7.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html If you instead useCUDA<11orCPU, install PyTorch by the following command, pip install torch==1.7.1 Then run the following script to install the remaining dependencies, ...
pip install torch==1.7.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html If you instead use CUDA <11 or CPU, install PyTorch by the following command, pip install torch==1.7.1 Then run the following script to install the remaining dependencies, pip install -r requirements.txt...
SimCSE-Chinese-Pytorch SimCSE在中文上的复现,无监督 + 有监督 最近看了SimCSE这篇论文,便对论文做了pytorch版的复现和评测 论文:https://arxiv.org/pdf/2104.08821.pdf 官方:https://github.com/princeton-nlp/SimCSE 2. 文件 >datasets 数据集文件夹>cnsd-snli>STS-B>pretrained_model 各种预训练模型文件夹>...