IEEE XPLORE的PYTHON软件开发套件返回Importerror:无法导入name' soft_unicode'从markupsafe'

发布于 2025-02-07 03:19:08 字数 494 浏览 2 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海之角 2025-02-14 03:19:08

使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文