Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def n_grams(a, n):
- return zip(*[a[i:] for i in range(n)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement