Import file

Hi ,

I am very new to this field. I am following some online example to lear RASA in python

Pyton version :3.6.9

rasa.nlu =1.5.3

rasa.core =1.5.3

I am unable to run file , code as below

from future import absolute_import from future import division from future import unicode_literals

import logging import asyncio from rasa.nlu.training_data import load_data

from rasa_core.agent import Agent from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import MemoizationPolicy

if name == ‘main’: logging.basicConfig(level=‘DEBUG’)

training_data_file = './data/'
model_path = './models/dialogue'

agent = Agent('customer_domain.yml', policies = [MemoizationPolicy(max_history = 2),
                                              KerasPolicy(epochs = 500,
                                                          batch_size = 10,
                                                          validation_split = 0.2)])

data =agent.load_data(training_data_file)


#ERROR for t in training_trackers

TypeError: ‘coroutine’ object is not iterable

I tried all the options available

await is showing syntax error in spyder.

Regards, Aashay