IEEE XPLORE的PYTHON软件开发套件返回Importerror:无法导入name' soft_unicode'从markupsafe'
我正在使用Python和NLP进行窃探测器的工作,我想动态构建训练集。因此,我正在尝试使用IEEE Xplore的Python软件开发套件来收集培训数据的某些部分,但是当我尝试导入SDK时,我会收到导入错误(确切错误:Infror:Infror:Infror:无法从'中导入'soft_unicode''我
正在使用 documentation
代码(我已更换访问密钥和访问密钥,与占位符的查询):
import xplore
query = xplore.xploreapi.XPLORE('api_access_key')
query.abstractText('query')
data = query.callAPI()
I am working on a Plagiarism Detector using Python and NLP and I wanted to build the training set dynamically. Hence I am trying to use the IEEE Xplore's Python Software Development Kit to gather some part of the training data, but when I try to import the SDK I get an Import error.(Exact error: ImportError: cannot import name 'soft_unicode' from 'markupsafe')
I was using the code provided in the documentation
The Code(I have replaced the access key and query with placeholders):
import xplore
query = xplore.xploreapi.XPLORE('api_access_key')
query.abstractText('query')
data = query.callAPI()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 ieeee xplore网站而不是可用的包装,在pip上。使用Python 2代替Python 3
Use the package available on the IEEE Xplore website instead of the one available on pip. Use Python 2 instead of Python 3