AssertionError: Please define $CORENLP_HOME where your CoreNLP Java checkout is
hexingren opened this issue · 2 comments
hexingren commented
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.
gangeli commented
$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.
hexingren commented
I see. Thanks!