我正在构建一个食品订购聊天机器人,但在运行 online_train.py 时遇到了错误,因此我无法训练我的模型。
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
from rasa_core import utils, train, run
from rasa_core.training import interactive
logger = logging.getLogger(__name__)
def train_agent():
return train.train_dialogue_model(domain_file="./domain.yml",stories_file="./data/dialogue/stories.md", output_path="./models/dialogue/",policy_config="./policies.yml")
我希望输出是聊天机器人与正在运行的时代进行交互,但我得到了这个错误 'function' object has no attribute 'agent'