Hi all,
I’m trying to do custom entity with lookup, I tried to configure the nlu pipeline with the following config
language: en pipeline:
- name: HFTransformersNLP model_weights: “bert-base-uncased” model_name: “bert”
- name: LanguageModelTokenizer
- name: LanguageModelFeaturizer
- name: DIETClassifier
- epochs: 200
However, I install rasa by the below command as per docs
pip install rasa transformers
but I’m running into the below errors while attempt to train nlu
Training NLU model… 2020-06-11 17:23:36 INFO transformers.file_utils - PyTorch version 1.5.0 available. 2020-06-11 17:23:36 INFO transformers.file_utils - TensorFlow version 2.1.1 available. Traceback (most recent call last): File “/home/msaravanan/.conda/envs/sentbert/bin/rasa”, line 8, in sys.exit(main()) File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/main.py”, line 91, in main cmdline_arguments.func(cmdline_arguments) File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/cli/train.py”, line 140, in train_nlu persist_nlu_training_data=args.persist_nlu_data, File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/train.py”, line 414, in train_nlu persist_nlu_training_data, File “uvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/train.py”, line 453, in _train_nlu_async persist_nlu_training_data=persist_nlu_training_data, File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/train.py”, line 482, in _train_nlu_with_validated_data persist_nlu_training_data=persist_nlu_training_data, File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/nlu/train.py”, line 75, in train trainer = Trainer(nlu_config, component_builder) File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/nlu/model.py”, line 142, in init components.validate_requirements(cfg.component_names) File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/nlu/components.py”, line 51, in validate_requirements component_class = registry.get_component_class(component_name) File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/nlu/registry.py”, line 173, in get_component_class return class_from_module_path(component_name) File “/home/msaravanan/.conda/envs/sentbert/lib/python3.6/site-packages/rasa/utils/common.py”, line 196, in class_from_module_path if “.” in module_path: TypeError: argument of type ‘NoneType’ is not iterable
@akelad can you please provide any help on this ?