我最近在使用hanlp的抽象语义表示接口时总是报连接超时的错误,具体的使用和报错信息如下:
调用代码:
graphs = HanLP.abstract_meaning_representation(‘男孩希望女孩相信他。’)
报错信息:
TimeoutError: The read operation timed out
The above exception was the direct cause of the following exception:
ReadTimeoutError Traceback (most recent call last)
ReadTimeoutError: HTTPSConnectionPool(host=‘www.hanlp.com’, port=443): Read timed out. (read timeout=60)
During handling of the above exception, another exception occurred:
ReadTimeout Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
530 raise SSLError(e, request=request)
531 elif isinstance(e, ReadTimeoutError):
→ 532 raise ReadTimeout(e, request=request)
533 elif isinstance(e, _InvalidHeader):
534 raise InvalidHeader(e, request=request)
ReadTimeout: HTTPSConnectionPool(host=‘www.hanlp.com’, port=443): Read timed out. (read timeout=60)
在1月27日的使用是正常的,从1月28日起连接超时,请问有什么解决方法吗?