Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: '/root/.sacrebleu/wmt18/test-ts/raw/test/newstest2018-zhen-src-ts.zh.sgm' #142

Closed
zwhe99 opened this issue Mar 3, 2021 · 0 comments

Comments

@zwhe99
Copy link

zwhe99 commented Mar 3, 2021

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant