Naive-Bayes-Evening-Workshop
Naive-Bayes-Evening-Workshop copied to clipboard
charmap error with python 3.7.0a2 (works with 2.7)
$ python Python 3.7.0a2 (v3.7.0a2:f7ac4fe, Oct 17 2017, 17:06:29) [MSC v.1900 64 bit (AMD64)] on win32
$ python run.py
Ok let's go!
Traceback (most recent call last):
File "run.py", line 16, in
Same issue occurred on Python 3.6.4.
I guess Windows uses backslash instead of forward slash. So try to replace the code at line number 11 of run.py with:
datasource_info = [('newyorktimes', 'data\nyt_discussions.json'), ('motherjones', 'data\motherjones_discussions.json'), ('breitbart', 'data\breitbart_discussions.json')]