https://github.com/Andras7/word2vec-pytorch/blob/36b93a503e8b3b5448abbc0e18f2a6bd3e017fc9/word2vec/data_reader.py#L102 I think `i + boundary` should include a `+ 1` to make it inclusive, otherwise the right context takes 1 token less in the resulting skipgrams.