Last active
July 18, 2018 12:06
-
-
Save dineybomfim/886da2cb79801f1c511a1c26c9b14ea4 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
let strings = loadTextFile(fileName: file) | |
.replacingOccurrences(of: "\n", with: " ") | |
.components(separatedBy: " ") | |
MarkovModel.process(transitions: strings) { matrix in | |
print(matrix) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment