Week 4 Exercise 1: get_metrix

i complete the problem I’m sure that it’s correct but it give me this error

KeyError Traceback (most recent call last)
in
4 # getting the training set:
5 X_train, Y_train = get_matrices(
----> 6 en_fr_train, fr_embeddings_subset, en_embeddings_subset)

in get_matrices(en_fr, french_vecs, english_vecs)
36
37 # get the english embedding
—> 38 en_vec = english_vecs[en_word]
39
40 # add the english embedding to the list

KeyError: ‘centre’

Hi @Amar_Ismail,

You are to initialise the english_set with English word embeddings, but you have done it using the English to French dictionary instead.

Best,
Mubsi