we are trying to upgrade the rasa version from 1.1.3 to 2.8.15, observed below error
ComponentNotFoundException: Failed to load the component ‘ner_crf’. Cannot find class ‘ner_crf’ in global namespace. Please check that there is no typo in the class name and that you have imported the class into the global namespace. Either your pipeline configuration contains an error or the module you are trying to import is broken (e.g. the module is trying to import a package that is not installed). Traceback (most recent call last): File “\python3.7\3.7.9.ds2\lib\site-packages\rasa\nlu\registry.py”, line 121, in get_component_class return rasa.shared.utils.common.class_from_module_path(component_name) File “c:\jpmc\dev\tmp\ds\tools\python3.7\3.7.9.ds2\lib\site-packages\rasa\shared\utils\common.py”, line 45, in class_from_module_path raise ImportError(f"Cannot retrieve class from path {module_path}.") ImportError: Cannot retrieve class from path ner_crf.
requirements:
- rasa==2.8.15
- spacy==3.0.6
- en-core-web-md==3.0.0
- grpcio<2.0,>=1.37.0
- sanic==19.12.2
- kiwisolver==1.0.1
- h5py<=3.1.0
- decorator<5,>=4.3
- gast==0.4.0
- protobuf<3.20,>=3.9.2
- idna==2.10
- uvicorn==0.14.0
- numpy<1.20.0,>=1.19.2
config.yml:
- name: SpacyNLP model: “en_core_web_md” case_sensitive: false
- name: SpacyTokenizer
- name: RegexFeaturizer
- name: CountVectorsFeaturizer
- name: SpacyFeaturizer
- name: “ner_crf”
- features: [ [“low”, “title”, “upper”], [“bias”, “low”, “prefix2”, “suffix3”, “suffix2”, “upper”, “title”, “digit”, “pattern”, “pos”, “pos2”], [“low”, “title”, “upper”]]
- name: “ner_synonyms”
- name: “SklearnIntentClassifier”
- epochs: 90
- intent_tokenization_flag: false
- batch_strategy: balanced
can you help us resolve this issue