Reputation: 127
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!
Upvotes: 0
Views: 11410
Reputation: 1
pip install preprocess
Reference: https://pypi.org/project/preprocess/
Upvotes: 0
Reputation: 1
pip install preprocessing
Reference: https://pypi.org/project/preprocessing/
Upvotes: -1
Reputation: 280973
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.
Upvotes: 2