def create_model(name): chubot = ChuBotBrain(name, language='vi') chubot.load_data( "/media/nvidia/ssd/catkin_ws/src/chu_bot_source/chubot/usingdata/full_train.json" ) # chubot.load_data("usingdata/vi_nlu_ask_way.json") meta = chubot.train()
def test_train_models(): botname = "greet_en" nludatafile = "/media/nvidia/ssd/catkin_ws/src/chu_bot_source/chubot/data/nlu_greet.json" chubot = ChuBotBrain(botname, language='en') chubot.load_data(nludatafile) meta = chubot.train() print(meta)
def create_model(name): chubot = ChuBotBrain(name, language='vi') chubot.load_data("usingdata/full_train.json") # chubot.load_data("usingdata/vi_nlu_ask_way.json") meta = chubot.train()