Hello. I am new to rasa. i am trying to create a chatbot, and here is my code. But I get this error which I don’t understand. Can you help me ?
from future import absolute_import from future import division from future import print_function from future import unicode_literals
from rasa_nlu.model import Trainer from rasa_nlu import config #from rasa_nlu.training_data import load_data from rasa_nlu.model import Interpreter from rasa_nlu.converters import load_data #from rasa.shared.nlu.training_data.loading import load_data
import requests from rasa_core_sdk import Action from rasa_core_sdk.events import SlotSet
def train_chatbot(data_json, configs, model_dir): training_data = load_data(data_json) trainer = Trainer(config.load(configs)) trainer.train(training_data) model_directory = trainer.persist(model_dir, fixed_model_name=‘chatbot’)
train_chatbot(’./data/data.json’,‘config.yml’, ‘./models/nlu’)