Traceback (most recent call last):
File "../tools/sacreBLEU/sacrebleu.py", line 1434, in <module>
main()
File "../tools/sacreBLEU/sacrebleu.py", line 1368, in main
print_test_set(args.test_set, args.langpair, args.echo)
File "../tools/sacreBLEU/sacrebleu.py", line 989, in print_test_set
print('\t'.join(map(lambda x: x.rstrip(), lines)))
"UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 76: ordinal not in range(128)"
Is it Linux/python dependent problem? Without these locale lines sacrebleu seems to do the job.
LC_ALL=C.UTF-8 commands:
https://github.com/marian-nmt/marian-examples/blob/52ddb6e56936b599ecea1b845f8874ad4dc8b26c/wmt2017-transformer/run-me.sh#L40-L46
Error:
Is it Linux/python dependent problem? Without these locale lines sacrebleu seems to do the job.