예제 #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()
예제 #2
0
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()