course-nlp icon indicating copy to clipboard operation
course-nlp copied to clipboard

WikiText-103 pickled file path is different than in notebook

Open jwuphysics opened this issue 5 years ago • 0 comments

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.

jwuphysics avatar Jul 10 '19 00:07 jwuphysics