Exam part 2 #44
Replies: 3 comments 5 replies
-
Let's try here first! Others may have similar issues, this way we can learn from each other! |
Beta Was this translation helpful? Give feedback.
-
So I'm getting 1/12 points when I do tmc test and it keeps saying '"nlp is not defined" for each exercise in exam part 2. The nlp variable has the small language model downloaded correctly.I don't really understand why it says it's not defined because when print(speeches[0]) I get the first speech, when I print(entities[0]) it prints "RONALD REAGAN'S" and when I print(verbs[0]) it prints out "distinguish". So it seems I'm getting the correct results but I'm not getting any points. What could be the issue? |
Beta Was this translation helpful? Give feedback.
-
print(type(nlp)) gives <class 'spacy.lang.en.English'> print(type(speeches[0]) gives <class 'spacy.tokens.doc.Doc'> print(type(speeches)) gives <class 'list'> And when I print either speeches, entities or verbs it gives me correct answers. i run the cells in order before I save the file, save it and it still gives me 1/12 I don't have any issues with exam part 1 or 3 and I have spent probably 4 or 5 hours this week trying to figure out why tmc test is saying 'nlp is not defined' . I've tried tmctest probably 30 times making sure it's saved and nothing seems to help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble with exam part 2. Can I ask questions here about the exam or should I contact Veronika directly?
Beta Was this translation helpful? Give feedback.
All reactions