def test_run_train_test_command_english(fp): mod = train_nlu( nlu_data="tests/data/nlu/en/nlu.md", config=f"tests/configs/{fp}", output="models", ) run_nlu(model=f"models/{mod}", nlu_data="tests/data/nlu/en/nlu.md")
def test_run_train_test_command_english(fp): if "flashtext" in fp: nlu_data = "tests/data/nlu/en/nlu_w_lookups.md" else: nlu_data = "tests/data/nlu/en/nlu.md" mod = train_nlu( nlu_data=nlu_data, config=f"tests/configs/{fp}", output="models", ) run_nlu(model=f"models/{mod}", nlu_data="tests/data/nlu/en/nlu.md")
def test_run_train_test_command_non_english(fp, nlu): mod = train_nlu(nlu_data=nlu, config=f"tests/configs/{fp}", output="models") run_nlu(model=f"models/{mod}", nlu_data=nlu)