Machine learning Rasa NLU培训师如何修复;Can';“找不到培训文件”;错误?

Machine learning Rasa NLU培训师如何修复;Can';“找不到培训文件”;错误?,machine-learning,artificial-intelligence,chatbot,rasa-nlu,Machine Learning,Artificial Intelligence,Chatbot,Rasa Nlu,我正在使用RASA堆栈创建天气机器人。我正在尝试访问NLU Trainer GUI,但出现错误。 它说,即使我创建了一个JSON文件,它也找不到培训文件。它存储在-桌面/weather\u bot/data中。我还使用 sudo npm i-g rasa nlu培训师 但是,当我尝试使用rasa nlu trainer访问GUI时,会出现以下错误 Desktop/weather_bot/data/data.json searching for the training examples... (

我正在使用
RASA
堆栈创建天气机器人。我正在尝试访问
NLU Trainer GUI
,但出现错误。 它说,即使我创建了一个JSON文件,它也找不到培训文件。它存储在-
桌面/weather\u bot/data
中。我还使用

sudo npm i-g rasa nlu培训师

但是,当我尝试使用rasa nlu trainer访问GUI时,会出现以下错误

Desktop/weather_bot/data/data.json
searching for the training examples...
(node:31971) UnhandledPromiseRejectionWarning: Error: Can't find training file, please try to specify it with the --source option
    at checkDone (/usr/local/lib/node_modules/rasa-nlu-trainer/server.js:98:15)
    at readData.then.catch.then (/usr/local/lib/node_modules/rasa-nlu-trainer/server.js:128:11)
    at <anonymous>
(node:31971) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31971) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Desktop/weather\u bot/data/data.json
正在搜索培训示例。。。
(节点:31971)未处理的PromisejectionWarning:错误:找不到培训文件,请尝试使用--source选项指定它
检查完成时(/usr/local/lib/node_modules/rasa nlu trainer/server.js:98:15)
在readData.then.catch.then(/usr/local/lib/node_modules/rasa-nlu-trainer/server.js:128:11)
在
(节点:31971)未处理的PromisejectionWarning:未处理的承诺拒绝。此错误源于在没有catch块的异步函数中抛出,或者拒绝未使用.catch()处理的承诺。(拒绝id:1)
(节点:31971)[DEP0018]弃用警告:未处理的承诺拒绝已弃用。将来,未处理的承诺拒绝将使用非零退出代码终止Node.js进程。

\

此命令应能正常工作


rasa nlu trainer——source Desktop/weather\u bot/data/data.json

大多数情况下,如果在server.js中(!json.rasa\u nlu\u data){return reject(…)}返回拒绝(…)},则引发此错误,若要解决此问题,请尝试包含
{“rasa\u nlu\u数据”:{
作为data.json文件或培训数据文件中的第一行代码,希望这能解决您的问题,

我遇到了同样的问题。我包括了{“rasa_nlu__数据”:{在我的data.json文件的第一行代码中。但是我发现我的json文件有点错误。我在最后一个json数据中放了一个逗号。因此,请检查您的json文件是否正常。如果是oka,我认为它应该可以工作