I notice that your loss is way too high, so maybe the reason lies in your previous exercises (even though the error for grading is strange but it might have been caused by mistakes in your code and unit test did not capture them).
Hi arvy, based on his error, not defined for text vectorisation could be because he has not used the tf.keras.layers.TextVectorisation() for the exercise cell where sentence_vectorize is defined???
okay, sorry use705 I was asking arvy as I am not mentor for this course but a learner for this course right now.
Can you share the image of the error you are getting. Sorry I am not Mentor for this specialisation that’s why I was asking arvy, the NLP mentor.
Even I am doing the updated NLP course right now and I possibly noticed another post thread having similar issue, probably you can try once the search tool.
When I was asking arvy about the issue being related to sentence vectorizer, I meant it could be interconnected with that or from the create model grader cell. Actually until I see the error being shown, I honestly cannot say what could be the issue. Probably arvy is the expert here who would be better at cracking the issue.
The reason for your error is that you are trying to use text_vectorization variable inside the train_model() function of Exercise 03 - which is not defined. The parameter for this function is text_vectorizer (note the difference of last characters).