示例#1
0
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)
示例#3
0
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()