# -*- coding: utf-8 -*-
from aip import AipNlp
APP_ID = ""
API_KEY = ""
SECRET_KEY = ""
content = "麻省理工学院的研究团队为无人机在仓库中使用RFID技术进行库存查找等工作,创造了一种"
client = AipNlp(APP_ID, API_KEY, SECRET_KEY)
maxSummaryLen = 300
options = {}
options["title"] = "麻省理工"
client.newsSummary(content, maxSummaryLen, options)
运行报错没有属性
AttributeError: 'AipNlp' object has no attribute 'newsSummary'
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
建议重新pip install一下喔
我这边测试下来是有这个方法的