Guest User

Untitled

a guest
Jul 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. let strings = bookAsString.replacingOccurrences(of: "\n", with: " ").components(separatedBy: " ")
  2. MarkovModel.process(transitions: strings) { matrix in
  3. print(matrix)
  4. }
Add Comment
Please, Sign In to add comment