ModuleNotFoundError: No module named 'data_util_zhihu'
See original GitHub issueI use a03_TextRNN,but these two lines has error:
from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label
from tflearn.data_utils import pad_sequences #to_categorical
The error message said:
Traceback (most recent call last):
File "E:/test_opencv/text_classification-master/a03_TextRNN/p8_TextRNN_train.py", line 10, in <module>
from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label
ModuleNotFoundError: No module named 'data_util_zhihu'
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (4 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'dateutil' in Python
The Python "ModuleNotFoundError: No module named 'dateutil'" occurs when we forget to install the python-dateutil module before importing it ...
Read more >ImportError: No module named dateutil.parser - Stack Overflow
On Ubuntu you may need to install the package manager pip first: sudo apt-get install python-pip. Then install the python-dateutil package with:
Read more >ModuleNotFoundError: No module named 'dateutil' - YouTube
from dateutil import parserModuleNotFoundError: No module named ' dateutil 'pip install python-dateutilmore binary sloth err videos:pip : The ...
Read more >Conda环境安装Yleaf报错 - 知乎专栏
... line 168, in addpackage exec(line) File "<string>", line 1, in <module> ModuleNotFoundError: No module named '_distutils_hack' Remainder ...
Read more >Importerror no module named dateutil : Multiple ways to Fix
Solution 1 : Use the below command for installing python-dateutil package. The above command will install the latest stable version for python-dateutil package ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
tflearn is a Python package use pip install tflearn to slove it
you can find create_voabulary_label from https://github.com/brightmart/text_classification/blob/master/a02_TextCNN/other_experiement/data_util_zhihu.py
you can copy /a02_TextCNN/other_experiement/data_util_zhihu.py to your catalog
@peterHeuz
hi,
check TextCNN, there is a file named data_util.py it has two function:
one is create vocabulary for words and labels, another is transform data into indices using vocabulary dict.
bright
发件人: Rhaegal notifications@github.com 发送时间: 2018年6月1日 14:55 收件人: brightmart/text_classification 抄送: Subscribed 主题: [brightmart/text_classification] ModuleNotFoundError: No module named ‘data_util_zhihu’ (#59)
I use a03_TextRNN,but these two line:
from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label from tflearn.data_utils import pad_sequences #to_categorical
The error message said:
Traceback (most recent call last): File “E:/test_opencv/text_classification-master/a03_TextRNN/p8_TextRNN_train.py”, line 10, in <module> from data_util_zhihu import load_data_multilabel_new,create_voabulary,create_voabulary_label ModuleNotFoundError: No module named ‘data_util_zhihu’
― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbrightmart%2Ftext_classification%2Fissues%2F59&data=02|01||a04a5ecefcfe40e0c5fe08d5c78ca2e0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636634329193719784&sdata=yeJderOGqRBWtgel2UIMj509OZzk6Bm%2FbGojArWJEAA%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASuYMIP9N7w0nfWIdFYYaJMQJYyB-O6Kks5t4OVVgaJpZM4UWMS8&data=02|01||a04a5ecefcfe40e0c5fe08d5c78ca2e0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636634329193719784&sdata=9P8liKsdqYiDE0l3GC5mt0DP5AMdfNRlmrptz3U%2FEu4%3D&reserved=0.