首页 > 解决方案 > Rasa:“构建一个简单的机器人”中的错误

问题描述

我正在关注教程:https ://core.rasa.com/tutorial_basics.html#tutorial-basics ,我在步骤:让我们运行

python -m rasa_nlu.train -c nlu_model_config.json --fixed_model_name current

我有这个错误:

usage: train.py [-h] [-o PATH] (-d DATA | -u URL) -c CONFIG [-t NUM_THREADS]
                [--project PROJECT] [--fixed_model_name FIXED_MODEL_NAME]
                [--storage STORAGE] [--debug] [-v]
train.py: error: one of the arguments -d/--data -u/--url is required

我已经尝试了明显的并运行:

python -m rasa_nlu.train -c nlu_model_config.json --fixed_model_name current -d

但随后它给了我错误:train.py: error: argument -d/--data: expected one argument

我真的很困惑,因为我仍在运行本教程并且我不明白这些论点是什么。

标签: rasa-core

解决方案


您必须在 -d 标志之后提供数据集的路径,例如这样

python -m rasa_nlu.train -c nlu_model_config.json --fixed_model_name current -d data/nlu_data.md


推荐阅读