Problem with nlu model

Hello I am starting with Rasa and for this code:

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

from rasa_nlu.training_data import load_data

from rasa_nlu.config import RasaNLUModelConfig

from rasa_nlu.model import Trainer, Metadata, Interpreter from rasa_nlu import config

def train (data, config_file, model_dir): training_data = load_data(data) configuration = config.load(config_file) trainer = Trainer(configuration) trainer.train(training_data) model_directory = trainer.persist(model_dir, fixed_model_name = ‘chat’)

def run(): interpreter = Interpreter.load(’./models/nlu/default/chat’) print(interpreter.parse(‘I want to order pizza’)) #print(interpreter.parse(u’What is the reivew for the movie Die Hard?’))

if name == ‘ main ’: train(’./data/training_data.json’, ‘./config/config.yml’, ‘./models/nlu’) run()

I get this type of error:

Traceback (most recent call last): File “nlu_model.py”, line 7, in from rasa_nlu.training_data import load_data ImportError: cannot import name load_data

I kindly ask for help!

hi try to use from rasa_nlu.converters import load_data instead of from rasa_nlu.training_data import load_data