implemented sentenceId checking for Ngrams, to make sure I don't create
Ngrams that overlap two sentences.