Hello. There are some problems grading submissions in my three tests: get matrices, get document embedding, and get document vecs.
Can anyone tell me what problem arose in my exercises, please? Thank you very much!
For get_matricies, you are passing the entire dictionary instead of one item in the dictionary.
1 Like
Hi,
In the get_document_embedding, you could try to replace doc_embedding = en_embeddings.get(word, 0)
by doc_embedding = doc_embedding + en_embeddings.get(word, 0)
.
1 Like
thank you so much!!
Thank you for replying. But can you please explain more about it?
You are setting en_vec to english_vecs, english_vecs is the entire dictionary. You should instead set it equal to a value in the dictionary.
Thank you so much