Word2vec (Mikolov et al., 2013) learns word vectors by predicting context words from a center word. Each word and each neighbour within a fixed window forms one training pair.
Implement skipgram_pairs(tokens, window), returning every (center, context) pair within the window.
For each position, loop over the neighbours inside the window and skip the center.
No results yet
Run your code to check it against the examples, or submit to run every test.