word2vec_pytorch icon indicating copy to clipboard operation
word2vec_pytorch copied to clipboard

代码中有一处我理解不了

Open huangyanhui opened this issue 6 years ago • 2 comments

您好,get_batch_pairs函数中的i==j是为了排除本身吗?但是这样的逻辑也排除不了本身啊,i==j的时候他们并不是同一个啊

huangyanhui avatar Apr 11 '18 14:04 huangyanhui

I will look into it when I reconstruct this repo. Thanks for the feedback!

Adoni avatar Jan 08 '19 03:01 Adoni

i think it is bug, it should be i==j+max(i - window_size, 0)

zhaoxvdong avatar Apr 02 '20 01:04 zhaoxvdong