Ah I completely forgot this! 
You might have NLTK packages that are on your local but not Spaces, that’s why it works on local imo.
Ah I completely forgot this! 
You might have NLTK packages that are on your local but not Spaces, that’s why it works on local imo.