【问题标题】:I'm using pythonanywhere server and i want to use stanfordcorenlp server "http://corenlp.run:80" in my code but i get "<Response [401]>"我正在使用 pythonanywhere 服务器,我想在我的代码中使用 stanfordcorenlp 服务器“http://corenlp.run:80”,但我得到“<Response [401]>”
【发布时间】:2018-09-27 12:46:27
【问题描述】:

我正在使用pythonanywhere 服务器,我想在我的代码中使用stanfordcorenlp 服务器“http://corenlp.run:80”,但我得到“&lt;Response [401]&gt;

【问题讨论】:

  • 401 表示未经授权。您可能需要登录。
  • 我已经登录了 pythonanywhere 服务器.. stanford corenlp 需要登录吗?@Glenn

标签: python web-services python-requests stanford-nlp pythonanywhere


【解决方案1】:

不要使用 API 调用来访问 corenlp.run! 这是一个为演示设置的服务器,不是为大量请求配置的。它给你一个 401 Unauthorized 因为你未经授权向公共演示服务器发出 API 请求。

您应该改为运行自己的 CoreNLP Server 实例并针对它发出 API 请求。

【讨论】:

  • 你能帮我怎么做吗?
  • 链接站点有启动和配置服务器的分步说明。
  • pythonanywhere 服务器可以做这件事吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-09-01
  • 2020-06-15
  • 1970-01-01
  • 2016-04-18
  • 1970-01-01
  • 2020-09-01
  • 1970-01-01
相关资源
最近更新 更多