textstat/resources/TextStat.py
def ngramList(tokenlist, n):
   """Returns a N-gram list from a tokenlist.
      The returned list is just a list of N-grams, not a frequency profile."""
   if len(tokenlist) >= n:
      return tuple((tuple(tokenlist[i:i+n]) for i in range(len(tokenlist) - (n - 1))))
   return ()
Returns a N-gram list from a tokenlist.
      The returned list is just a list of N-grams, not a frequency profile.
Returns a N-gram list from a tokenlist.
The returned list is just a list of N-grams, not a frequency profile.
Returns a N - gram list from a tokenlist . The returned list is just a list of N - grams not a frequency profile .
def ngramList(tokenlist, n):
   if len(tokenlist) >= n:
      return tuple((tuple(tokenlist[i:i+n]) for i in range(len(tokenlist) - (n - 1))))
   return ()
def ngramList ( tokenlist , n ) : if len ( tokenlist ) >= n : return tuple ( ( tuple ( tokenlist [ i : i + n ] ) for i in range ( len ( tokenlist ) - ( n - 1 ) ) ) ) return ( )
Returns a N-gram list from a tokenlist.
Returns a N - gram list from a tokenlist .
"""Returns a N-gram list from a tokenlist.
      The returned list is just a list of N-grams, not a frequency profile."""
tokenlist
n