In my python code I want to use a module called "topicmodels" (that can be found here https://github.com/sekhansen/text-mining-tutorial ). The problem with this module is that whenever I want to "import topicmodels" in my Python code, I get the error message: ImportError: No module name preprocess, more specifically in that topicmodels module is a Python file init .py that contains the line " from preprocess import * ". I googled and did not find a python module called preprocess - can anybody help me out on this? (I am using Kubuntu and Python 3.5.2 | Anaconda 4.2.0).
Thanks a lot for any help!
This code is written for Python 2. You're on Python 3. The failing import is an implicit relative import , which Python 3 prohibits.
Run it on Python 2.
pip install preprocessing
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.