We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0edc1d commit db6c699Copy full SHA for db6c699
corenlp/client.py
@@ -120,9 +120,9 @@ def __init__(self, start_server=True, endpoint="http://localhost:9000", timeout=
120
host, port = urlparse(endpoint).netloc.split(":")
121
assert host == "localhost", "If starting a server, endpoint must be localhost"
122
123
- assert os.getenv("JAVANLP_HOME") is not None, "Please define $JAVANLP_HOME where your CoreNLP Java checkout is"
124
- start_cmd = "{javanlp}/bin/javanlp.sh edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port {port} -timeout {timeout}".format(
125
- javanlp=os.getenv("JAVANLP_HOME"),
+ assert os.getenv("CORENLP_HOME") is not None, "Please define $CORENLP_HOME where your CoreNLP Java checkout is"
+ start_cmd = "java -cp '{corenlp_home}/*' edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port {port} -timeout {timeout}".format(
+ corenlp_home=os.getenv("CORENLP_HOME"),
126
port=port,
127
timeout=timeout)
128
stop_cmd = None
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments