word2vec_pytorch
word2vec_pytorch copied to clipboard
代码中有一处我理解不了
您好,get_batch_pairs函数中的i==j是为了排除本身吗?但是这样的逻辑也排除不了本身啊,i==j的时候他们并不是同一个啊
I will look into it when I reconstruct this repo. Thanks for the feedback!
i think it is bug, it should be i==j+max(i - window_size, 0)