added sentence IDs from tokens into ngrams