C4W1 Error from grader

I have passed (60/70) but I am confused by one thing. Everything worked fine, including the unit tests. When I submit, I get 0/10 on the “Translate” because apparently an exception got thrown in one test case, that I can’t see any reason for.

If anyone has an idea how I could fix this, I’d be appreciative.

Did you pass all the tests on the notebook before submitting? Particularly for the translate function? When I took the course, we tested it with a temperature of 0.7. Maybe it has changed. I am not a mentor for the NLP Specialization but I can check your notebook if you share privately.

Yes, all the unit tests passed, so there’s really no way to know what triggered it, especially since the code is a try/except but the except just prints that generic error.

I’m not sure what the easiest way to share the notebook is.

As an aside I added a cell with some basic text and a temperature of 0.9 and executed the cell , and it ran just fine. If I could see the text that caused it to fail, I could try going through it and manually going one step at a time and see where the exception occurred.

You can click on my name and click on message, then you send the notebook after downloading from Coursera. It could actually be that the grader has an issue but just want to check and compare.

Note that adding cells to a notebook is a sure-fire way to make the grader unhappy.

Oh I didn’t have that cell when I submitted it, this was me trying to see if I could replicate the error.