Commits

Anonymous committed 0e06696

registered function not instance to server

  • Participants
  • Parent commits a969f6e

Comments (0)

Files changed (1)

     server = jsonrpc.Server(jsonrpc.JsonRpc20(), 
                             jsonrpc.TransportTcpIp(addr=(options.host, int(options.port))))
     nlp = StanfordCoreNLP()
-    server.register_function(nlp.parse())
+    server.register_function(nlp.parse)
     print 'Serving on http://%s:%s' % (options.host, options.port)
     server.serve()