AttributeError: module 'rasa_nlu.registry' has no attribute 'load_component_by_name'

Hi All. I have been following the Getting Started tutorial online at Getting Started with Rasa NLU

I have installed Rasa … successfully I think. I have saved the training data locally and also saved the model config locally and successfully trained model I can see subdir ./models/current/nlu containing checkpoint file, component files, metadata file and training dataset

I have tried to use this model, as yet without success. I directly copied code from the webpage

from rasa_nlu.model import Interpreter import json interpreter = Interpreter.load("./models/current/nlu") message = “let’s see some italian restaurants” result = interpreter.parse(message) print(json.dumps(result, indent=2))

When I try to use the model I get an error as follows

File “C:\ProgramData\Anaconda3\envs\cefashion\lib\site-packages\IPython\core\”, line 3267, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File “”, line 3, in interpreter = Interpreter.load("./models/current/nlu/") File “C:\ProgramData\Anaconda3\envs\cefashion\lib\site-packages\rasa_nlu\”, line 293, in load skip_validation) File “C:\ProgramData\Anaconda3\envs\cefashion\lib\site-packages\rasa_nlu\”, line 320, in create model_metadata, **context) File “C:\ProgramData\Anaconda3\envs\cefashion\lib\site-packages\rasa_nlu\”, line 417, in load_component component = registry.load_component_by_name( AttributeError: module ‘rasa_nlu.registry’ has no attribute ‘load_component_by_name’

Thanks for your attention.