“ModuleNotFoundError: Cannot find class ‘RegexEntityExtractor’ 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.”

I am working on a chatbot project in which I am working with lookup tables for entity extraction. I am facing this issue while training the model. “ModuleNotFoundError: Cannot find class ‘RegexEntityExtractor’ 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.” I am using rasa 1.10. Any idea on how to deal with this issue? My pipeline looks like this:

language: en

pipeline:

  • name: WhitespaceTokenizer

  • name: RegexFeaturizer

  • name: LexicalSyntacticFeaturizer

  • name: CountVectorsFeaturizer

  • name: CountVectorsFeaturizer

    analyzer: “char_wb”

    min_ngram: 1

    max_ngram: 4

  • name: RegexEntityExtractor

    case_sensitive: False

    use_lookup_tables: True

  • name: DIETClassifier

    epochs: 100

    entity_recognition: False

  • name: EntitySynonymMapper

  • name: ResponseSelector

    epochs: 100