FoolNLTK icon indicating copy to clipboard operation
FoolNLTK copied to clipboard

报错,FileNotFoundError: [Errno 2] No such file or directory: 'D:\\ProgramData\\Anaconda3\\envs\\deeplearning\\fool\\map.zip'

Open gameliu007 opened this issue 3 years ago • 0 comments

File "C:/Users/Lenovo/PycharmProjects/mytest/pos_tagg.py", line 14, in print(fool.cut(text)) File "C:\Users\Lenovo\AppData\Roaming\Python\Python37\site-packages\fool_init_.py", line 65, in cut all_words = LEXICAL_ANALYSER.cut(text) File "C:\Users\Lenovo\AppData\Roaming\Python\Python37\site-packages\fool\lexical.py", line 100, in cut self._load_seg_model() File "C:\Users\Lenovo\AppData\Roaming\Python\Python37\site-packages\fool\lexical.py", line 41, in _load_seg_model self.seg_model = self._load_model("seg.pb", "char_map", "seg_map") File "C:\Users\Lenovo\AppData\Roaming\Python\Python37\site-packages\fool\lexical.py", line 37, in _load_model char_to_id, id_to_seg = _load_map_file(self.map_file_path, word_map_name, tag_name) File "C:\Users\Lenovo\AppData\Roaming\Python\Python37\site-packages\fool\lexical.py", line 16, in _load_map_file with ZipFile(path) as myzip: File "D:\ProgramData\Anaconda3\envs\deeplearning\lib\zipfile.py", line 1240, in init self.fp = io.open(file, filemode) FileNotFoundError: [Errno 2] No such file or directory: 'D:\ProgramData\Anaconda3\envs\deeplearning\fool\map.zip'

这个目录也是有的,不知为何提示没有此文件或文件夹,还是一个不知名的问题引发的map.zip文件不能建立或者什么的

gameliu007 avatar Nov 15 '21 15:11 gameliu007