I am trying to download the general_character_bert and medical_character_bert pretrained models. When I run the download.py I got some errors. When I downloaded the files manually, I discovered that both files are the same... so
maybe there is an error in the links? And also you may need to change the permission to 'Anyone with the link'.
Thanks!
I get these errors:
26/04/2024 12:06:50 - INFO - download.py - Downloading general_character_bert model (~200MB tar.xz archive)
Access denied with the following error:
Cannot retrieve the public link of the file. You may need to change
the permission to 'Anyone with the link', or have had many accesses.
You may still be able to access the file from the browser:
26/04/2024 12:06:51 - INFO - download.py - Extracting model from archive (~420MB folder)
Traceback (most recent call last):
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/mauriciotoro/Desktop/git/ml-categorization/playground/character_bert/download.py", line 80, in
main()
File "/Users/mauriciotoro/Desktop/git/ml-categorization/playground/character_bert/download.py", line 77, in main
download_model(name=args.model)
File "/Users/mauriciotoro/Desktop/git/ml-categorization/playground/character_bert/download.py", line 54, in download_model
tar = tarfile.open(file_destination, "r:xz")
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/tarfile.py", line 1824, in open
return func(name, filemode, fileobj, **kwargs)
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/tarfile.py", line 1930, in xzopen
fileobj = LZMAFile(fileobj or name, mode, preset=preset)
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/lzma.py", line 120, in init
self._fp = builtins.open(filename, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'pretrained-models/model.tar.xz'
Hi,
This library is such a great idea!
I am trying to download the general_character_bert and medical_character_bert pretrained models. When I run the download.py I got some errors. When I downloaded the files manually, I discovered that both files are the same... so maybe there is an error in the links? And also you may need to change the permission to 'Anyone with the link'.
Thanks!
I get these errors:
26/04/2024 12:06:50 - INFO - download.py - Downloading general_character_bert model (~200MB tar.xz archive) Access denied with the following error:
You may still be able to access the file from the browser:
26/04/2024 12:06:51 - INFO - download.py - Extracting model from archive (~420MB folder) Traceback (most recent call last): File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/mauriciotoro/Desktop/git/ml-categorization/playground/character_bert/download.py", line 80, in
main()
File "/Users/mauriciotoro/Desktop/git/ml-categorization/playground/character_bert/download.py", line 77, in main
download_model(name=args.model)
File "/Users/mauriciotoro/Desktop/git/ml-categorization/playground/character_bert/download.py", line 54, in download_model
tar = tarfile.open(file_destination, "r:xz")
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/tarfile.py", line 1824, in open
return func(name, filemode, fileobj, **kwargs)
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/tarfile.py", line 1930, in xzopen
fileobj = LZMAFile(fileobj or name, mode, preset=preset)
File "/Users/mauriciotoro/miniconda/envs/character-bert/lib/python3.10/lzma.py", line 120, in init
self._fp = builtins.open(filename, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'pretrained-models/model.tar.xz'