helboukkouri / character-bert

Main repository for "CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters"
Apache License 2.0
195 stars 47 forks source link

tarfile.ReadError: not an lzma file #25

Closed thibault-roux closed 12 months ago

thibault-roux commented 1 year ago

When downloading model using download.py, there are some trouble. To avoid this, I had to download directly using the URL at the beginning of the script and to decompress it myself in the pretrained-models folder.

Traceback (most recent call last):
  File "download.py", line 105, in <module>
    main()
  File "download.py", line 102, in main
    download_model(name=args.model)
  File "download.py", line 79, in download_model
    tar = tarfile.open(file_destination, "r:xz")
  File "/users/troux/.conda/envs/character-bert/lib/python3.8/tarfile.py", line 1621, in open
    return func(name, filemode, fileobj, **kwargs)
  File "/users/troux/.conda/envs/character-bert/lib/python3.8/tarfile.py", line 1734, in xzopen
    raise ReadError("not an lzma file")
tarfile.ReadError: not an lzma file

Regards,

Sequential-circuits commented 1 year ago

My case too

helboukkouri commented 12 months ago

It's fixed, sorry for the delay :)