titles = [line.rstrip() for line in open('./nlp_class/all_book_titles.txt')]
# copy tokenizer from sentiment example
stopwords = set(w.rstrip() for w in open('./nlp_class/stopwords.txt'))
I tried to run the python file 'books.py' but it gave this error:
Traceback (most recent call last):
File "books.py", line 14, in <module>
titles = [line.rstrip() for line in open('./nlp_class/all_book_titles.txt')]
FileNotFoundError: [Errno 2] No such file or directory: './nlp_class/all_book_titles.txt'
The full directory is: C:\Python36\python_bible\nlp_class
The 'books.py' file location: C:\Python36\python_bible\books.py
The full code is here: https://jsfiddle.net/4rd2knbu/