I passed all 8 tests and submitted the assignment, got the error “The notebook you provided has a syntax error that prevents it from compiling.”
So I did the test to submit the unmodified notebook, and got the same message. it was a wrong test case as you mentioned that unmodified notebook is not syntax error free.
Now, I tried tasks one by one. Passed the " Tweet to tensor" and submitted, got same error and score 0/80. it should be 10/80.
Passed " Data generator", and still got 0/80 instead of 20/80.
It happened to other courses before, you passed every test, and got 0 for assignment. I may need to wait few days to resubmit it.
I don’t think waiting is going to help. You need to debug the problem with your code. Is there still a syntax error in your notebook? Just working the solutions one at a time doesn’t help, if there’s a later function you have not fixed yet that throws a syntax error. If there is any syntax error anywhere in the notebook, the grader fails and gives 0 points. The grader needs to be able to run the entire notebook in order to generate incremental grades on the individual functions.
You are not right! There are other notebooks for other homework in the course and everything works well for them. We can send all assignments or some parts and they will be evaluated fully or partially. But here error exists and multiple people confirmed and verified it. See the messages above.
Sorry, I am not enrolled in NLP, so I can’t actually see what is happening in this assignment. I was speaking on general principles: if there is any syntax error anywhere in the notebook, you will not be able to get any information about the correctness of any of your individual functions from the grader. All you get is 0 in that instance and a message about the syntax error. That’s because the grader can’t actually run any of your individual functions because of the syntax error.
We’ll need a mentor from NLP to get to the next level of detail here. I’ll see if I can find someone to take a look.
Hey @Damieno, @Jian_Xu1, @xin_xu and @Ivaniuk_Petro,
Welcome, and we are glad that you could be a part of our community This issue has been reported by another learner, and I have raised concerns regarding this with the team, and it has been fixed. It might take some time to reflect in your notebooks. In the meanwhile, you can follow this thread, resolve the issue manually, and pass the auto-grader. Let us know if we can help you out in any other way.
I have refreshed the workspace, synced the newest change but still getting “The notebook you provided has a syntax error that prevents it from compiling.” even though I have passed all the tests in the 1st exercise.
Well, maybe there are syntax errors later in the notebook. Please do “Cell → Run All” and then scan carefully through the whole notebook. As I pointed out earlier, if there is any syntax error anywhere in the notebook, then the grader can’t actually run any of your functions, so the result will always be 0.
You can do “File → Rename” to rename your notebook out of the way. As pointed out in the instructions here, the “Get Latest Version” won’t over-write an existing file, so you need to move or delete the original file first.
Just for informational purposes, the way to delete a file is to click “File → Open” from the notebook and that gives you a “File Navigation” view of the assignment. From there, you can find several ways to delete a file.