Last active
October 21, 2015 19:54
-
-
Save Cowa/459b4471a7f192b1b41b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val n = 2 | |
| val ngram = tokens.sliding(n).toList | |
| // List(List(The, blue), List(blue, sky), List(sky, is), List(is, near), List(near, the), List(the, red), List(red, koala), List(koala, near), List(near, the), List(the, blue), List(blue, sky)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment