Hironsan / anago

Bidirectional LSTM-CRF and ELMo for Named-Entity Recognition, Part-of-Speech Tagging and so on.
https://anago.herokuapp.com/
MIT License
1.48k stars 371 forks source link

Pre-trained Download Error #85

Open vtrn988 opened 5 years ago

vtrn988 commented 5 years ago

I'm trying to download the pre-trained model for Japanese language using the following code:

from anago.utils import download
url="https://storage.googleapis.com/chakki/datasets/public/ner/model_ja.zip"
download(url)

as described in https://github.com/Hironsan/anago/blob/master/docs/docs/resources.md.

I got the following error: Exception: URL fetch failure on https://storage.googleapis.com/chakki/datasets/public/ner/model_ja.zip: None -- Forbidden

System information

The same error occurred with other languages as well.

Source code / logs

Full stacktrace

Using TensorFlow backend.
Traceback (most recent call last):
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 222, in get_file
    urlretrieve(origin, fpath, dl_progress)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/site-packages/anago/utils.py", line 18, in download
    filepath = get_file(fname='tmp.zip', origin=url, extract=True)
  File "/home/foo/miniconda2/envs/py3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 224, in get_file
    raise Exception(error_msg.format(origin, e.errno, e.reason))
Exception: URL fetch failure on https://storage.googleapis.com/chakki/datasets/public/ner/model_ja.zip: None -- Forbidden
Downloading data from https://storage.googleapis.com/chakki/datasets/public/ner/model_ja.zip

Thanks