Closed hexingren closed 6 years ago
$5 says you need to set os.environ["CORENLP_HOME"]
rather than os.environ["$CORENLP_HOME"]
. Alternately, you can start your code with:
CORENLP_HOME=/path/to/corenlp python blah.py
Offer not redeemable for monetary value in any state.
I see. Thanks!
I was using CoreNLP 3.9.1, and tried to define the environment variable $CORENLP_HOME that points to the unzipped directory using the following code. """ import os os.environ["$CORENLP_HOME"] = r'my_path\stanford-corenlp-full-2018-02-27' """ However, I still got the AssertionError: Please define $CORENLP_HOME where your CoreNLP Java checkout is. How should I define the required environment variable here? Does this interface work with the latest version of CoreNLP (v 3.9.1)? Thanks.