In “Course 2 Week 2 Lecture Notebook - Working with text files” (Notebook title C2_W2_lecture_nb_1_strings_tags), there is an error in the def get_word_tag(line, vocab):
cell.
The last three lines of the function should be
# Handle unknown word
tag = assign_unk(word)
return word, tag
However, in the notebook it is:
# Handle unknown word
word = assign_unk(word)
return word, tag