Hello everyone,
I have passed graded exercises 1-4 and this section comes right before exercise 5. I am seeing the output and I don’t think it is supposed to be this way, but since I have passed all the previous tests and trained the model too I am unable to pinpoint what is wrong. Any help would be appreciated.
Kindly have a look at the screenshot
this code is not part of your graded unittest, so can I know why are you saying why you will output should be different?
try to give brief reasoning behind your statement when raising your query.
Also although these codes are not part of graded assignment but will be used in subsequent graded exercise in the assignment.
Hello, sorry for lack of information.
The output has done=False which suggested to me that the function did not fully translate it until the end token. Also there was no output to compare it to. Hence I thought perhaps something was going wrong.
done? Falsee is indicative that the sentence being translated is not the end of sequence token as the code clearly implies to do.
Also as far as I can see the cell surely printed out the code instructed.
I think you are confusing that processing the sentence to translate and tokenize would give you output of translated text.
the code you shared here only process the sentence into tokens to be ready to be translated.
when you will go in subsequent exercise translate, you will notice an instruction mentioning
convert the translated token into text, where you would the output of translated sentence.
1 Like
Hello, I finished this assignment and submitted it but I got 0 points even though all the unit tests were passed within the notebook. The grader comment was “There was a problem compiling the code from your notebook. Details:
‘NoneType’ object is not callable”
Kindly help me.
ok this is a different issue than you have created topic, kindly always create A separate topic.
can you brief me if the grader gave that feedback as general to all exercise or to a particular exercise?
That error occurs when you try to call a variable or object that has the value None as if it were a function or method.
Thanks, I was able to solve the error using grade-until-here.
1 Like
great, do let know what was the issue in the code and how you resolve it?
So future learners find your topic helpful in case they encounter similar issue
Hello,
Basically while doing the NLP Specialization, we have 4 courses with NLP with Attention Models being the final one.
The thing is, grading works differently for NLP with Attention Models and the other three models, this is involving the “# grade_until_here” comment. This is also indicated in the lab instructions.
In the other three courses, each cell is compiled separately but for NLP with Attention Models, the entire notebook is compiled at once until the “#grade_until_here” comment. So if you have left the last exercise (which you can if you don’t want a perfect score and just want to pass) then this comment is what you should use to tell the grader that the compilation should be partial.
1 Like