rahulremanan / python_tutorial

Python 3 tutorial for machine learning and natural language processing.
MIT License
33 stars 40 forks source link

06_QA_Demo_mac.py #2

Closed ngiangre closed 7 years ago

ngiangre commented 7 years ago

The original 06_QA_Demo.py needed a mac analog so I added the file named in the header which added in the line 155-starting try/except block at line 162:

from os.path import expanduser home = expanduser("~") tar = tarfile.open(home+'/GitHub/python_tutorial/NLP/data/babi_tasks_1-20_v1-2.tar.gz')

This should run with python 06_QA_Demo_mac.py on any mac.

rahulremanan commented 7 years ago

This is not an issue and more of a feature request. A parser for command line arguments is in the works. For now, just edit the file and folder pointers to point to the correct file location.