dasmith / stanford-corenlp-python

Python wrapper for Stanford CoreNLP tools v3.4.1
GNU General Public License v2.0
610 stars 229 forks source link

I have an error and, if it's something you're aware of, wondered if you can help me with a fix? #56

Closed nikhil-shrestha closed 2 years ago

nikhil-shrestha commented 6 years ago

python corenlp.py Traceback (most recent call last): File "corenlp.py", line 257, in nlp = StanfordCoreNLP() File "corenlp.py", line 163, in init self.corenlp = pexpect.spawn(start_corenlp) File "/usr/local/lib/python2.7/dist-packages/pexpect/pty_spawn.py", line 198, in init self._spawn(command, args, preexec_fn, dimensions) File "/usr/local/lib/python2.7/dist-packages/pexpect/pty_spawn.py", line 271, in _spawn 'executable: %s.' % self.command) pexpect.exceptions.ExceptionPexpect: The command was not found or was not executable: java.

naveenk903 commented 6 years ago

same issue as above ExceptionPexpect: The command was not found or was not executable: java

arsalanamjid commented 6 years ago

Install java, that fixed the error for me!

nabhanabdulla commented 5 years ago

You should install jdk8