Tag: concept insights

Watson Concept-Insights文档列表/限制选项在nodeJS中不起作用

我正在使用Watson Concept-Insights构build一个新的语料库。 到目前为止,我使用nodeJS创build了大约100个文档。 如果我使用curl来列出文件,我可以find所有的文件。 但是,当我在nodeJS中列出同一组文档时,它始终忽略限制值并返回20个文档的默认值。 帮帮我!! 下面的基本代码(帐户密钥replace为“myAccount”): var watson = require('watson-developer-cloud'); var concept_insights = watson.concept_insights({ yada yada… this all works } params = { 'corpus': '/corpora/myAccount/theAdviser', 'limit': 200 }; concept_insights.corpora.listDocuments(params, function(err,_res) { if (err) { console.log(err); } else { console.log(JSON.stringify(_res, null, 2)); res.send(JSON.stringify(_res, null, 2)); } }); 无论限制选项input什么值,我总是得到20个结果。 另一方面,CURL根据指定的限制返回完整列表或子集。 等价的工作curl声明是: curl -u "{userID}":"{password}" "https://gateway.watsonplatform.net/concept-insights-beta/api/v2/corpora/myAccount/theAdviser/documents?limit=200"