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 cfae0b2 commit b0306ffCopy full SHA for b0306ff
pycorenlp/corenlp.py
@@ -10,6 +10,13 @@ def __init__(self, server_url):
10
def annotate(self, text, properties=None):
11
if not properties:
12
properties = {}
13
+
14
+ # Checks that the Stanford CoreNLP server is started.
15
+ assert requests.get(nlp.server_url).ok, \
16
+ str('Check whether you have started the CoreNLP server, e.g. \n'
17
+ '$ cd stanford-corenlp-full-2015-12-09/ \n'
18
+ '$ java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer')
19
20
r = requests.get(
21
self.server_url, params={
22
'properties': str(properties)
0 commit comments