mikeizbicki / cmc-csci181-deeplearning

deep learning course materials
15 stars 6 forks source link

Update README.md #25

Closed xxing21 closed 4 years ago

xxing21 commented 4 years ago

coronavirus-headlines instead of coronavirus_headlines

an error may occur for coronavirus_headlines:

Traceback (most recent call last):
  File "names.py", line 146, in <module>
    with gzip.open(args.data,'rt') as f:
  File "//anaconda3/lib/python3.7/gzip.py", line 53, in open
    binary_file = GzipFile(filename, gz_mode, compresslevel)
  File "//anaconda3/lib/python3.7/gzip.py", line 163, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'coronavirus-headlines/coronavirus-headlines-train.jsonl.gz'
mikeizbicki commented 4 years ago

Thanks!

angelachenco commented 4 years ago

Hi Prof. Izbicki,

I am still getting this error. How can I fix this?

Screen Shot 2020-09-09 at 7 53 51 AM
mikeizbicki commented 4 years ago

@angelachenco The error message says it can't find the file coronavirus-headlines/coronavirus-headlines-train.jsonl.gz. You have a file called coronavirus-headlines-train.jsonl.gz in your current directory, but you need to put it into a folder called coronavirus-headlines.

Also, in general, it is prefered to copy-paste code into github rather than take screenshots. This helps other people copy/paste snippets of your code and it helps google index the issues.