course-nlp
course-nlp copied to clipboard
WikiText-103 pickled file path is different than in notebook
In the notebook 5-nn-imdb.ipynb
, executing the cell with
wiki_itos = pickle.load(open(Config().model_path()/'wt103-1/itos_wt103.pkl', 'rb'))
returns a FileNotFoundError: [Errno 2] No such file or directory
because the directory structure is incorrect. On my test run (using Google Colab notebooks, with GPU runtime) the file should be in the directory wt103-fwd
rather than wt103-1
.
The line
wiki_itos = pickle.load(open(Config().model_path()/'wt103-fwd/itos_wt103.pkl', 'rb'))
loads correctly for me.