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

Model link broken (wmt21-comet-qe-da) #78

Closed
ricardorei opened this issue May 11, 2022 · 0 comments
Closed

Model link broken (wmt21-comet-qe-da) #78

ricardorei opened this issue May 11, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ricardorei
Copy link
Collaborator

🐛 Bug

Taken from #53

When I pass --model wmt21-comet-qe-da

Global seed set to 12
Downloading refless-wmt21-comet-da.tar.gz
refless-wmt21-comet-da.tar.gz: 0.00B [00:00, ?B/s]
Traceback (most recent call last):
File "comet/cli/score.py", line 327, in
score_command()
File "comet/cli/score.py", line 170, in score_command
model_path = download_model(cfg.model, saving_directory=cfg.model_storage_path)
File "/content/COMET/comet/download_utils.py", line 209, in download_model
available_metrics[model], directory=saving_directory
File "/content/COMET/comet/download_utils.py", line 165, in download_file_maybe_extract
urllib.request.urlretrieve(url, filename=filepath, reporthook=_reporthook(t))
File "/usr/lib/python3.7/urllib/request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

which means the model name (taken from doc) is not wrong according to your post, but not able to download.
I'll use wmt20-comet-qe-da instead

Expected behavior

This command should work fine!

comet-score -s src.de -t hyp1.en --model wmt21-comet-qe-da

Environment

OS: [e.g. iOS, Linux, Win]
unbabel-comet v1.1.0]

@ricardorei ricardorei added the bug Something isn't working label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants