As reported here the following code yields an error:
rouge = evaluate.load('rouge')
rouge.add(predictions="sentence 1", references="sentence 2")
ValueError: Evaluation module inputs don't match the expected format.
Expected format: {'predictions': Value(dtype='string', id='sequence'), 'references': Value(dtype='string', id='sequence')},
Input predictions: sentence 1,
Input references: sentence 2
As reported here the following code yields an error: