from aip import AipNlp
"""
百度 智能识别地址
"""
def address(addr = ''):
""" 你的 APPID AK SK """
APP_ID = ''
API_KEY = ''
SECRET_KEY = ''
client = AipNlp(APP_ID, API_KEY, SECRET_KEY)
""" 调用词法分析 """
re = client.address(addr)
return re
print (address('海淀区,北京大学'))



