Created
December 23, 2016 22:16
-
-
Save Jamil/d240bf31cc06c52ee18c8ebc9d351463 to your computer and use it in GitHub Desktop.
Demo of bigram model use
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
| x = ["the", "quick", "brown", "fox", "jumps", "over", "a", "lazy", "dog", "who", "jumps", "below", "the", "white", "rabbit", "who", "jumps", "over", "the", "green", "turtle", "who", "jumps", "above", "the", "lazy", "cat", "who"] | |
| grams = bigrams $ bigrammap x | |
| genx = gen grams pseudorand 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment