Python Forum

Full Version: Running Stanford CoreNLP on Mac
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
import os
java_path = 'C:\\Program Files\\Java\\jre1.8.0_131\\bin\\java.exe'
os.environ['JAVAHOME'] = java_path