Installation: pip install sacrebleu
Version: 1.5.0
When executing the following command, an error occurred:
sacrebleu -t wmt18/test-ts -l zh-en
sacreBLEU: Processing /root/.sacrebleu/wmt18/test-ts/raw/test/newstest2018-zhen-src-ts.zh.sgm to /root/.sacrebleu/wmt18/test-ts/zh-en.zh
Traceback (most recent call last):
File "/root/anaconda3/envs/torch1.6/bin/sacrebleu", line 8, in
sys.exit(main())
File "/root/anaconda3/envs/torch1.6/lib/python3.7/site-packages/sacrebleu/sacrebleu.py", line 248, in main
ref_files = get_reference_files(test_set, args.langpair)
File "/root/anaconda3/envs/torch1.6/lib/python3.7/site-packages/sacrebleu/utils.py", line 139, in get_reference_files
return get_files(test_set, langpair)[1:]
File "/root/anaconda3/envs/torch1.6/lib/python3.7/site-packages/sacrebleu/utils.py", line 170, in get_files
download_test_set(test_set, langpair)
File "/root/anaconda3/envs/torch1.6/lib/python3.7/site-packages/sacrebleu/utils.py", line 245, in download_test_set
process_to_text(rawpath, outpath, field=field)
File "/root/anaconda3/envs/torch1.6/lib/python3.7/site-packages/sacrebleu/utils.py", line 74, in process_to_text
with smart_open(rawfile) as fin, smart_open(txtfile, 'wt') as fout:
File "/root/anaconda3/envs/torch1.6/lib/python3.7/site-packages/sacrebleu/utils.py", line 38, in smart_open
return open(file, mode=mode, encoding=encoding, newline="\n")
FileNotFoundError: [Errno 2] No such file or directory: '/root/.sacrebleu/wmt18/test-ts/raw/test/newstest2018-zhen-src-ts.zh.sgm'