I was trying to set up NLTK using subprogress to call Stanford corenlp on our server, which is a Gentoo system. But when I try to run it, an error occurs as:
which: no java.exe in(/home/user/.ENV/bin:/homes/user/bin/.amd64-linux:/homes/user/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3:/usr/games/bin:.)
But when I try which java
, it shows as /usr/bin/java
. But all these work well on my own Ubuntu System.
I am using NERtag by calling the nltk.tag.stanford.NERTagger. All the details of calling java are hidden in that.
Does anyone know how to fix this? Thanks very much!