C4W3_Assignment in Natural Language Processing with Attention Models

Hi @Pavamana

For exercise 2
GRADED FUNCTION: parse_squad
Create the question/context sequence
for the context part you have used ’ context: ’ + context which is incorrect. It should be ’ context: ’ + paragraph[‘context’]

Remember the point mentions

  • Create the answer sequence using the first answer from the available answers.
    So it is paragraph from the article from which context was extracted.

Also in exercise 3,
kindly remove the below return statement, it is not any issue but it can cause auto grading isse as you have added it inside ###START AND END CODE HERE##
#return tokenizer.detokenize(tokenized_answer).numpy()[0].decode(‘utf-8’)

Another thing, right restarting the kernel and re-run the cell from beginning one by one once you make the correction I mentioned.

Let me know if you are still getting any error.

Regards
DP

1 Like