【发布时间】:2020-02-27 18:40:22
【问题描述】:
我正在尝试在 Watson Discovery 的集合上添加自定义停用词,但我只收到错误 500“创建‘停用词’时出错。”。在 web 和 api (curl) 上都一样。
我试过了:
- 文件有 99 行,
- 空文件,
- 和一个 IBM 文件 (https://watson-developer-cloud.github.io/doc-tutorial-downloads/discovery/custom_stopwords_en.txt)
我已经检查过 (https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts&locale=en):
- 高级计划 - 好的
- 大小限制为一百万个字符 - 好的
- 每个集合只有一个自定义停用词列表 - 好的
- 所有停用词都应为小写。 - 好的
- 删除并创建一个新集合 - 好的
另外,我用无效的集合和环境运行 curl 来检查 api 验证(我知道这是不必要的),它按预期返回 404“找不到列出的集合”(好的,它正在工作)。
我错过了什么吗?我还能检查什么?
卷曲命令:
curl -X POST -u "apikey":"..." --data-binary @custom_stopwords_pt.txt "https://gateway.watsonplatform.net/discovery/api/v1/environments/.../collections/.../word_lists/stopwords?version=2019-04-30"
谢谢
【问题讨论】:
标签: python text-mining ibm-watson stop-words discovery