Closed g-luo closed 3 years ago
Hi Grace,
Hope it helps.
Thank you for your quick reply!
When you say to pick the weights manually instead of by variance, do you mean modifying what's being done here? I'm not quite sure where in the repo the word weights are being determined.
Hi Grace,
You can edit this part: https://github.com/BinWang28/SBERT-WK-Sentence-Embedding/blob/889e6691cdb8f962159ad3ae02f7917c342cb34e/utils.py#L150
var_token is the weights for different tokens in a sentence.
Gotcha; thanks so much!
Hello! I had a few questions:
Thanks so much for your help!