fo40225 / tensorflow-windows-wheel

Tensorflow prebuilt binary for Windows
3.67k stars 1.53k forks source link

error issue if zipfile.BadZipFile: File is not a zip file #160

Open saikiranreddygangidi opened 4 years ago

saikiranreddygangidi commented 4 years ago

when i try to use nltk.pos_tag("price")

it showing the belong error I had tried different things but doesn't worked out.

import nltk nltk.pos_tag("price") Traceback (most recent call last): File "<pyshell#1>", line 1, in nltk.pos_tag("price") File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\tag__init.py", line 161, in pos_tag tagger = _get_tagger(lang) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\tag__init.py", line 107, in _get_tagger tagger = PerceptronTagger() File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\tag\perceptron.py", line 144, in init__ find('taggers/averaged_perceptron_tagger/' + PICKLE) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 673, in find return find(modified_name, paths) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 660, in find return ZipFilePathPointer(p, zipentry) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\compat.py", line 228, in _decorator return init_func(*args, **kwargs) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 506, in init zipfile = OpenOnDemandZipFile(os.path.abspath(zipfile)) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\compat.py", line 228, in _decorator return init_func(*args, **kwargs) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\nltk\data.py", line 1055, in init zipfile.ZipFile.init(self, filename) File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\zipfile.py", line 1108, in init__ self._RealGetContents() File "C:\Users\Anirudh\AppData\Local\Programs\Python\Python36-32\lib\zipfile.py", line 1175, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file

please share solution for this issue.