8000 registered function not instance to server · apercis/stanford-corenlp-python@0e06696 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e06696

Browse files
committed
registered function not instance to server
1 parent a969f6e commit 0e06696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corenlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,6 @@ def parse(self, text):
171171
server = jsonrpc.Server(jsonrpc.JsonRpc20(),
172172
jsonrpc.TransportTcpIp(addr=(options.host, int(options.port))))
173173
nlp = StanfordCoreNLP()
174-
server.register_function(nlp.parse())
174+
server.register_function(nlp.parse)
175175
print 'Serving on http://%s:%s' % (options.host, options.port)
176176
server.serve()

0 commit comments

Comments
 (0)
0