Convert input text to a list of ngrams
The text is first split by sentence, after which each sentence is
converted into ngrams. The ngrams for all sentences are combined and
returned.
- Parameters:
-
- Returns:
list – List of tuples, where each tuple is an ngram from the original
text.