Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit db6c699

Browse files
Fix dependence on the internal javanlp.sh script; use CORENLP_HOME instead
1 parent b0edc1d commit db6c699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎corenlp/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def __init__(self, start_server=True, endpoint="http://localhost:9000", timeout=
120120
host, port = urlparse(endpoint).netloc.split(":")
121121
assert host == "localhost", "If starting a server, endpoint must be localhost"
122122

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"),
123+
assert os.getenv("CORENLP_HOME") is not None, "Please define $CORENLP_HOME where your CoreNLP Java checkout is"
124+
start_cmd = "java -cp '{corenlp_home}/*' edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port {port} -timeout {timeout}".format(
125+
corenlp_home=os.getenv("CORENLP_HOME"),
126126
port=port,
127127
timeout=timeout)
128128
stop_cmd = None

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /