Skip to content

Commit

Permalink
update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibing624 committed Aug 11, 2022
1 parent bc49e1d commit ad5b8f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -750,11 +750,13 @@ Xu, M. Text2vec: Text to vector toolkit (Version 1.1.2) [Computer software]. htt

BibTeX:
```latex
@software{Xu_Text2vec_Text_to,
author = {Xu, Ming},
title = {{Text2vec: Text to vector toolkit}},
url = {https://github.com/shibing624/text2vec},
version = {1.1.2}
@misc{Text2vec,
author = {Xu, Ming},
title = {Text2vec: Text to vector toolkit},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/shibing624/text2vec}},
}
```

Expand Down
2 changes: 1 addition & 1 deletion text2vec/cosent_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def train_model(

def calc_loss(self, y_true, y_pred):
"""
CoSENT的排序loss,refer:https://kexue.fm/archives/8847
矩阵计算batch内的cos loss
"""
# 1. 取出真实的标签
y_true = y_true[::2] # tensor([1, 0, 1]) 真实的标签
Expand Down

0 comments on commit ad5b8f6

Please sign in to comment.