I have a problem with “Assignment: Emojify”.
Although all the tasks are “passed” I get a score of 0 for the following reason.
I cannot figure out the error, can someone help please help.
Error Message:
Cell #10. Can’t compile the student’s code. Error: SyntaxError(‘EOF while scanning triple-quoted string literal’, (’/tmp/student_solution_cells/cell_10.py’, 24, 625, ‘’’’\navg = sentence_to_avg(“Morrocan couscous is my favorite dish”, word_to_vec_map)\nprint(“avg = \n”, avg)\n\ndef sentence_to_avg_test(target):\n # Create a controlled word to vec map\n word_to_vec_map = {‘a’: [3, 3], ‘synonym_of_a’: [3, 3], ‘a_nw’: [2, 4], ‘a_s’: [3, 2], \n ‘c’: [-2, 1], ‘c_n’: [-2, 2],‘c_ne’: [-1, 2], ‘c_e’: [-1, 1], ‘c_se’: [-1, 0], \n ‘c_s’: [-2, 0], ‘c_sw’: [-3, 0], ‘c_w’: [-3, 1], ‘c_nw’: [-3, 2]\n }\n # Convert lists to np.arrays\n for key in word_to_vec_map.keys():\n word_to_vec_map[key] = np.array(word_to_vec_map[key])\n’))
in this this error says Can’t compile the student’s code. Error: SyntaxError(‘EOF while scanning triple-quoted string literal, means there is unended triple quote somewhere
and if you look closely there are four ‘’’’ before the line:
‘’’’\navg = sentence_to_avg(“Morrocan couscous is my favorite dish”, word_to_vec_map)\
i am guessing that this causes the line to comment out from the code
but i am not able to find the unended quote in the code maybe it is from the test unit side @nramon can you please help with this question