0
NLC分類當我嘗試創建NLC的一個新的分類,在此基礎上文檔: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/natural-language-classifier/api/v1/?node#create_classifier創建於bluemix
我不能創建一個新的分類。這是錯誤:
{ code: 400, error: undefined }
我不應該收到那種錯誤。
CSV文件非常小,僅供測試。
也許我做錯了什麼。但是,錯誤:「未定義」不說什麼......
這是代碼(同爲文檔)
var params = { language: 'es', name: "Train_NODE", training_data: fs.createReadStream('./public/uploads/'+req.files.file.name) }; natural_language_classifier.create(params, function(err, response) { if (err){ console.log(err); res.status(500).render('./APIs/NLC/', { title: err.description }); }else{ console.log(JSON.stringify(response, null, 2)); res.status(200).render('./APIs/NLC/', { title: 'Natural Language Classifer' }); } });
有人知道該怎麼辦?
從文檔中,400的原因是:「缺失或格式不正確的數據或數據集太小,可能是由於缺少培訓數據或格式錯誤的CSV導致的。你能發佈你的訓練數據嗎? –