Generating word windows from tokens of the sentence