You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "parse_data.py", line 10, in <module>
embedder = SeqVecEmbedder()
File "/home/gerdos/.local/lib/python3.8/site-packages/bio_embeddings/embed/seqvec_embedder.py", line 66, in __init__
self._model = ElmoEmbedder(
File "/home/gerdos/.local/lib/python3.8/site-packages/allennlp/commands/elmo.py", line 175, in __init__
self.elmo_bilm = _ElmoBiLm(options_file, weight_file)
File "/home/gerdos/.local/lib/python3.8/site-packages/allennlp/modules/elmo.py", line 527, in __init__
self._token_embedder = _ElmoCharacterEncoder(options_file, weight_file, requires_grad=requires_grad)
File "/home/gerdos/.local/lib/python3.8/site-packages/allennlp/modules/elmo.py", line 312, in __init__
self._load_weights()
File "/home/gerdos/.local/lib/python3.8/site-packages/allennlp/modules/elmo.py", line 400, in _load_weights
self._load_char_embedding()
File "/home/gerdos/.local/lib/python3.8/site-packages/allennlp/modules/elmo.py", line 407, in _load_char_embedding
with h5py.File(cached_path(self._weight_file), 'r') as fin:
File "/home/gerdos/.local/lib/python3.8/site-packages/h5py/_hl/files.py", line 567, in __init__
fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
File "/home/gerdos/.local/lib/python3.8/site-packages/h5py/_hl/files.py", line 231, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 106, in h5py.h5f.open
OSError: Unable to open file (truncated file: eof = 63504384, sblock->base_addr = 0, stored_eof = 374434776)
After a while I was able to solve it by removing the cached weight file from
I was constantly getting the following error:
After a while I was able to solve it by removing the cached weight file from
/home/gerdos/.cache/bio_embeddings/seqvec/weights_file
This solve the error, so if you are having the same issue do:
rm $HOME/.cache/bio_embeddings/seqvec/weights_file
The text was updated successfully, but these errors were encountered: