code: def _get_word_ngrams(n, sentences):
      
      assert len(sentences) > 0
      assert n > 0
  
      words = _split_into_words(sentences)
      return _get_ngrams(n, words)
docs: Calculates word n-grams for multiple sentences.