I am confusing about how to use importer.get_domain(), also get_stories() and get_nlu_data().
in the code, everytime if domain is needed, call domain = await impter.get_domain(). Is there any trick here? Or can we just call it once, and deliver it as a param?
like the pic below, once you call get_stories(), call the get_domain()
Each of these functions needs to call the domain separately, as it’s not ensured that they’re all going to run, since each of these functions can be overwritten with a custom function. If you’re writing your own code, I don’t think I see any reason why you couldn’t call it once and then pass that value if you like