Cannot import rouge 2.4

rouge = evaluate.load(‘rouge’)

gives error:

File “”, line 219, in _call_with_frames_removed

File “/root/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-metric–rouge/b1bea12ea279dd0ebd5444e0e45d5bf380210af0bc37959c3df63ca1d2fd36ca/rouge.py”, line 1

^
SyntaxError: invalid syntax

Hi Serge. You might have figured this out already. But for other learners who run into the same issue, please check that the pip installs complete successfully. Also as mentioned in the notebook, please don’t restart the kernel unless there is a code cell that does so. Hope this helps.