【发布时间】:2016-12-21 10:15:12
【问题描述】:
我一直在尝试使用 stanford-corenlp-python,它是一个使用 this github repo 的 python 包装器。
但是,在存储结果时出现以下错误:
Traceback (most recent call last):
File "client.py", line 14, in <module>
result = nlp.parse("Hello world! It is so beautiful.")
File "client.py", line 11, in parse
return json.loads(self.server.parse(text))
File "/home/kenden/deeshacodes/stanford-corenlp-python/jsonrpc.py", line 934, in __call__
return self.__req(self.__name, args, kwargs)
File "/home/kenden/deeshacodes/stanford-corenlp-python/jsonrpc.py", line 906, in __req
raise RPCTransportError(err)
jsonrpc.RPCTransportError: [Errno 111] Connection refused
我该如何解决这个问题?另外,有没有其他方法可以在python中使用coreNLP?
【问题讨论】:
标签: python stanford-nlp