[Jepp-users] JepException: <type 'exceptions.ImportError'>: No module named nltk
Brought to you by:
mrjohnson0
From: Juliano E. S. <jul...@gm...> - 2014-09-18 19:00:35
|
Hi, I am trying to use Jep to call a code which makes use of nltk lib. I already installed this lib and I'm able to import it in the conventional Python terminal. However, when I try to import it via Jep, I receive the follow exception: jep.JepException: jep.JepException: <type 'exceptions.ImportError'>: No module named nltk at jep.Jep.eval(Jep.java:296) at ie.deri.linse.misc.WrapperQueryParser.<init>(WrapperQueryParser.java:17) at ie.deri.linse.misc.WrapperQueryParser.main(WrapperQueryParser.java:33) Caused by: jep.JepException: <type 'exceptions.ImportError'>: No module named nltk at jep.Jep.eval(Native Method) at jep.Jep.eval(Jep.java:280) ... 2 more My code is simply this: public WrapperQueryParser(String pythonCodePath) { Jep jep = new Jep(true, pythonCodePath, getClass().getClassLoader()); jep.eval("import nltk"); } Is there someone how could help me? Thanks, -- Juliano |