brightmart / text_classification

all kinds of text classification models and more with deep learning
MIT License
7.86k stars 2.57k forks source link

您好,每次我运行过CNN的train,接着运行predict时出现问题 #56

Open SmarttW opened 6 years ago

SmarttW commented 6 years ago

File "/home/wt/桌面/class/text_classification-master/a02_TextCNN/other_experiement/data_util_zhihu.py", line 28, in create_voabulary model=word2vec.load(word2vec_model_path,kind='bin') File "/usr/local/lib/python3.5/dist-packages/word2vec/io.py", line 18, in load return word2vec.WordVectors.from_binary(fname, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/word2vec/wordvectors.py", line 185, in from_binary with open(fname, 'rb') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'zhihu-word2vec.bin-100'

brightmart commented 6 years ago

you can set pre train word embedding flag to false, so you don't need that file anymore.


发件人: smarttw notifications@github.com 发送时间: 2018年5月27日 11:38 收件人: brightmart/text_classification 抄送: Subscribed 主题: [brightmart/text_classification] 您好,每次我运行过CNN的train,接着运行predict时出现问题 (#56)

File "/home/wt/桌面/class/text_classification-master/a02_TextCNN/other_experiement/data_util_zhihu.py", line 28, in create_voabulary model=word2vec.load(word2vec_model_path,kind='bin') File "/usr/local/lib/python3.5/dist-packages/word2vec/io.py", line 18, in load return word2vec.WordVectors.from_binary(fname, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/word2vec/wordvectors.py", line 185, in from_binary with open(fname, 'rb') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'zhihu-word2vec.bin-100'

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbrightmart%2Ftext_classification%2Fissues%2F56&data=02%7C01%7C%7Cad740d5f282342c5ba7408d5c38345bc%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636629890926406353&sdata=iSsNBm58uya4MUUSgtADa%2FphoolH1RL%2BSmzzSekZfRQ%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASuYMJ6VlGBGVngsaPJeBJIXotK9lOAiks5t2h-jgaJpZM4UPIlY&data=02%7C01%7C%7Cad740d5f282342c5ba7408d5c38345bc%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636629890926406353&sdata=BFrwUdRP%2Fh%2Fk0M3fbx3WASKE4oRzN65%2By2dMh2XdVe4%3D&reserved=0.