Skip to content

UnicodeDecodeError #22

Open
Open
@fhojati

Description

@fhojati

i'v been trying to run my code
although i run this correctly :python3 -m pyrouge.test
and it is answer me correct
when i run this :
from pyrouge import Rouge155

r = Rouge155()
r.system_dir = 'sys-summs'
r.model_dir = 'ref-summs'
r.system_filename_pattern = 'summ.(\d+).txt'
r.model_filename_pattern = 'summ.[A-Z].#ID#.txt'

output = r.convert_and_evaluate()
print(output)
output_dict = r.output_to_dict(output)

i get this errorUnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3131: invalid start byte

my txt format is utf8 i converts them to utf8 but again i get this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions