SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `word_index` is a `defaultdict` and `word` isn't one of the keys. Mutability can sometimes be a real pain when you're not interested in the absolutely quickest way (computationally) to run something. Moral of the story: RTFM ;)
RAW Paste Data
Top