Skip to content

Instantly share code, notes, and snippets.

@wochinge
Created January 24, 2019 16: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 wochinge/c671eefe15eaa4746997b9d736e95c1f to your computer and use it in GitHub Desktop.
Save wochinge/c671eefe15eaa4746997b9d736e95c1f to your computer and use it in GitHub Desktop.
Rasa Test Train split
from rasa_nlu.training_data.loading import load_data
data = load_data('<path to your nlu training data>')
train, test = data.train_test_split()
train.persist('<output directory for training data>')
test.persist('<output directory for test data>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment