Jun-22-2018, 09:23 PM
(This post was last modified: Jun-22-2018, 09:36 PM by gontajones.)
I've just created a Docker Image (ubuntu) with python3 + pip3, then:
When you installed the pyConTextNLP using pip, you were inside your virtual env, right?
Your error is that you are trying to import pyConTextNLP.pyConText, and it doesn't exist.
Reading the github docs of the module I saw this way to import it, maybe it'll help you:
pip3 install pyConTextNLP
Installed: pyConTextNLP-0.6.2.0-py2.py3-none-any.whl Installed: networkx-1.11-py2.py3-none-any.whl Installed: decorator-4.3.0-py2.py3-none-any.whlAnd now I'm able to import pyConTextNLP.
When you installed the pyConTextNLP using pip, you were inside your virtual env, right?
Your error is that you are trying to import pyConTextNLP.pyConText, and it doesn't exist.
Reading the github docs of the module I saw this way to import it, maybe it'll help you:
import pyConTextNLP.pyConTextGraph as pyConText import pyConTextNLP.itemData as itemData