初学者:我调用哪些函数可以实现分词,人名识别,音译识别名字啊地名识别

from hanlp_restful import HanLPClient
with open(“book.txt”,‘r’,encoding=‘utf-8’) as f:
book=f.read()
HanLP = HanLPClient(‘https://www.hanlp.com/api’,auth=‘API密钥’,language='zh’) # auth需要申请
doc = HanLP.tokenize(book) #进行分词
with open(“renci.txt”,‘w’) as f:
f.writelines(str(doc).strip())

HanLP/README.md at 1.x · hankcs/HanLP · GitHub