Skip to content

Problem with add method and Rouge #355

@lvwerra

Description

@lvwerra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions