RESTful API调用keyphrase_extraction显示AttributeError

from hanlp_restful import HanLPClient

HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh')
HanLP.keyphrase_extraction(doc[0])

以上代码在使用keyphrase_extraction时报错:
AttributeError: ‘HanLPClient’ object has no attribute ‘keyphrase_extraction’

是看了参考文档上用的这个方法,怎么会说不存在该属性呢?

刚发布的API,要升级客户端。

pip install hanlp_restful -U