Preprocessing input user message


I am trying to create a custom component, which edits and updates the user input message. I am working on rasa version 2.3.4. I have read the documentation, the forum discussions, and have considered the different suggestions, but I can’t get it to work!!

my config.yml looks like this:

language: es


  • name: edit_message.Preprocessor
  • name: SpacyNLP
    • model: es_core_news_sm

and my custom component is here: (1.2 KB)

Can anybody help me?