Hola Rasa friends!
I’m trying out the exciting new rasa==2.0.0a1 and experiencing some issues importing the standard NLU pipeline components. When I installed rasa==2.0.0a1 in a clean conda environment (MacOS Catalina, Python 3.7) the rasa init worked fine, but if I change the config.yml beyond the “supervised” preconfigured pipeline it breaks. More specifically, it seems that the ConveRTTokenizer, LexicalSyntacticFeaturizer and DIETClassifier are not found in this version.
Is this a bug or was this part of the plan?
Error message:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/nlu/registry.py", line 146, in get_component_class
return class_from_module_path(component_name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/utils/common.py", line 193, in class_from_module_path
raise ImportError("Cannot retrieve class from path {}.".format(module_path))
ImportError: Cannot retrieve class from path DIETClassifier.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/rasa", line 10, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/__main__.py", line 76, in main
cmdline_arguments.func(cmdline_arguments)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/cli/train.py", line 76, in train
kwargs=extract_additional_arguments(args),
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/train.py", line 45, in train
kwargs=kwargs,
File "uvloop/loop.pyx", line 1417, in uvloop.loop.Loop.run_until_complete
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/train.py", line 96, in train_async
kwargs,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/train.py", line 182, in _train_async_internal
kwargs=kwargs,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/train.py", line 231, in _do_training
persist_nlu_training_data=persist_nlu_training_data,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/train.py", line 459, in _train_nlu_with_validated_data
persist_nlu_training_data=persist_nlu_training_data,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/nlu/train.py", line 68, in train
trainer = Trainer(nlu_config, component_builder)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/nlu/model.py", line 148, in __init__
components.validate_requirements(cfg.component_names)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/nlu/components.py", line 38, in validate_requirements
component_class = registry.get_component_class(component_name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasa/nlu/registry.py", line 175, in get_component_class
raise ModuleNotFoundError(exception_message)
ModuleNotFoundError: Cannot find class 'DIETClassifier' from global namespace. Please check that there is no typo in the class name and that you have imported the class into the global namespace.```