Imported from https://github.com/salvador-dali/k-skip-n-gram