Oct-14-2020, 04:18 PM
I am trying to run CoreNLP from Stanford in PyCharm on a mac (macOS Catalina). First, I have to set JavaHome. I have the latest version of Java (version 8, update 261) on my computer.
How should I modify the following code chunk for mac? Thanks for any help.
How should I modify the following code chunk for mac? Thanks for any help.
import os java_path = 'C:\\Program Files\\Java\\jre1.8.0_131\\bin\\java.exe' os.environ['JAVAHOME'] = java_path