title: n-grams in python, four, five, six grams?
body: <p>I'm looking for a way to split a text into n-grams.
  Normally I would do something like:</p>
  
  <pre><code>import nltk
  from nltk import bigrams
  string = "I really like python, it's pretty awesome."
  string_bigrams = bigrams(string)
  print string_bigrams
  </code></pre>
  
  <p>I am aware that nltk only offers bigrams and trigrams, but is there a way to split my text in four-grams, five-grams or even hundred-grams?</p>
  
  <p>Thanks!</p>