Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Last active June 3, 2019 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamletbatista/e74912c3e764a6162f365c8c60846d0a to your computer and use it in GitHub Desktop.
Save hamletbatista/e74912c3e764a6162f365c8c60846d0a to your computer and use it in GitHub Desktop.
test_df = pd.read_csv("atis.test.csv", index_col=0)
model = LudwigModel.load("results/experiment_run_6/model")
predictions = model.predict(test_df)
test_df.reset_index().join(predictions)[["tokens", "intent_predictions", "slots_predictions"]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment