gpt4 book ai didi

machine-learning - Rasa NLU Trainer-如何修复“"Can' t 查找训练文件”错误?

转载 作者:行者123 更新时间:2023-11-30 09:06:39 24 4
gpt4 key购买 nike

我正在使用 RASA 堆栈创建天气机器人。我正在尝试访问 NLU Trainer GUI 但收到错误。它说即使我创建了一个 JSON 文件,它也找不到训练文件。它存储在 - Desktop/weather_bot/data 中。我还使用

sudo npm i -g rasa-nlu-trainer

但是当我尝试使用 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.

\

最佳答案

大多数情况下,由于 server.js 中的这行代码 if(!json.rasa_nlu_data){ returnreject("....") } 引发此错误,并解决此问题,尝试将 {"rasa_nlu_data": { 包含在 data.json 文件或训练数据文件中作为第一行代码,希望这能解决您的问题,

关于machine-learning - Rasa NLU Trainer-如何修复“"Can' t 查找训练文件”错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50552844/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com