Word vector does not load


When I try to execute this line of the notebook in the local machine

“word_to_index, index_to_word, word_to_vec_map = read_glove_vecs(‘data/glove.6B.50d.txt’)”

I get this error: ‘charmap’ codec can’t decode byte 0x9d in position 2273: character maps to

However, in the coursera notebook it works just fine.

Any idea on how to make this work in the local environment?


Boris Martínez.

The assignments are intended to be used in the Coursera Labs environment.

If you want to run them locally, you must download all of the required files, and you have to install the correct versions of all of the tools and libraries.

Hi TMosh.
I have a question about rnn_backward funciton in the first programming assignment of week1. Why is the code like this “gradients = rnn_cell_backward(da[:,:,t] + da_prevt, caches[t])” instead of “gradients = rnn_cell_backward(da[:,:,t], caches[t])”. I don’t understand why “da[:,:,t]” need plus “da_prevt”.
Thanks you in advance!

Please start a new thread for your question, so that another mentor can help you. I am going offline for the next few days.

I know it’s late, but I got the solution.