Closed Hoyyyaard closed 1 year ago
Traceback (most recent call last):
File "debug.py", line 15, in
I believe we've encountered this before. It's an issue with race conditions in NLTK when it tries to download the same corpora from two processes at the same time. You end up with a corrupted download. Try this:
# Remove existing corrupted NLTK downloads
rm -rf ~/nltk_data
# Re-download everything
python -c 'import nltk; [nltk.download(p) for p in ("wordnet", "wordnet_ic", "sentiwordnet", "omw", "omw-1.4")]'
This issue is being closed due to lack of activity. If you think it still needs to be addressed, please comment on this thread 👇
Description
error message occuied “zipfile.BadZipFile: File is not a zip file” When applied the code:
from transformers import PreTrainedTokenizerBase, AutoTokenizer from allennlp.predictors.predictor import Predictor from allennlp.common import Params
from allennlp.common.model_card import ModelCard import tarfile from pathlib import Path from typing import List, Union, Dict, Iterable, Sequence from allennlp.common.plugins import import_plugins predictor = Predictor.from_path('./elmo-constituency-parser-2020.02.10.tar.gz')