How to slove this error?

ComponentNotFoundException: Failed to load the component ‘supervised_embeddings’. Cannot find class ‘supervised_embeddings’ 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 “c:\python\anaconda\envs\bot\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:\python\anaconda\envs\bot\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 supervised_embeddings.

can you help me with how to solve this error?

Hi Darpant,

just to check, what version of Rasa are you using? The supervised_embeddings have been deprecated a while ago. Could you share the output of rasa --version and your config.yml-file?

Also, feel free to use the markdown syntax for the tracebacks. That way we get monospaced text which is easier to read.

Example:

This is easier to read if it were an error log.

could please find this?

@darpant-289 please don’t use screenshots in the future. They are hard to read unless text is properly zoomed in and they also don’t allow you to perform a text search.

Could you share your entire config.yml file? Not just the bottom part.

okay sure

Configuration for Rasa NLU.

https://rasa.com/docs/rasa/nlu/components/

language: en

pipeline:

# No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.

# If you’d like to customize it, uncomment and adjust the pipeline.

# See Tuning Your NLU Model for more information.

  • name: WhitespaceTokenizer

  • name: RegexFeaturizer

  • name: LexicalSyntacticFeaturizer

  • name: CountVectorsFeaturizer

  • name: CountVectorsFeaturizer

    analyzer: char_wb

    min_ngram: 1

    max_ngram: 4

  • name: DIETClassifier

    epochs: 100

    constrain_similarities: true

  • name: EntitySynonymMapper

  • name: ResponseSelector

    epochs: 100

    constrain_similarities: true

  • name: FallbackClassifier

    threshold: 0.3

    ambiguity_threshold: 0.1

Configuration for Rasa Core.

https://rasa.com/docs/rasa/core/policies/

policies:

# No configuration for policies was provided. The following default policies were used to train your model.

# If you’d like to customize them, uncomment and adjust the policies.

# See Policies for more information.

  • name: MemoizationPolicy

  • name: TEDPolicy

    max_history: 5

    epochs: 100

    constrain_similarities: true

  • name: RulePolicy

  • name: FormPolicy

I got this error . I have also define in form policy .

ActionNotFoundException: Cannot access action ‘form{“name”:“lead_form_p1”}’, as that name is not a registered action for this domain. Available actions are: - action_listen - action_restart - action_session_start - action_default_fallback - action_deactivate_loop - action_revert_fallback_events - action_default_ask_affirmation - action_default_ask_rephrase - action_two_stage_fallback - action_back - … - utter_greet - utter_menu - utter_urlAvailable - utter_lead_q1 - utter_lead_q2 - utter_lead_q3 - utter_lead_q4 - utter_lead_q5 - lead_form_p1 - lead_form_p2 - lead_form_p3

stories.yml

stories:

  • story: begin conversation

    steps:

    • intent: greet

    • action: utter_greet

    • action: utter_menu

  • story: combined begin with url

    steps:

    • intent: greet

    • action: utter_menu

    • intent: begin_lead

    • action: utter_lead_q1

    • action: lead_form_p1

    • action: form{“name”:“lead_form_p1”}

    • action: form{“name”:null}

    • intent: accept

    • action: lead_form_p2

    • action: form{“name”:“lead_form_p2”}

    • action: form{“name”:null}

    • action: lead_form_p3

    • action: form{“name”:“lead_form_p3”}

    • action: form{“name”:null}

    • action: utter_lead_q3

    • action: utter_lead_q4

    • action: utter_lead_q5

Just to confirm, this is a completely different error than before, correct?

Also, could you please use the markdown syntax here? You can add three ticks before and after text to render code neatly. There’s a small guide that also touches on this topic here.

yes I have done chages in config file after getting an error.

is right way to write to form action?

  • [quote=“koaning, post:9, topic:43069”]
  • [quote=“darpant-289, post:7, topic:43069”]
  • ActionNotFoundException: Cannot access action ‘form{“name”:“lead_form_p1”}’, as that name is not a registered action for this domain. Available actions are: - action_listen - action_restart - action_session_start - action_default_fallback - action_deactivate_loop - action_revert_fallback_events - action_default_ask_affirmation - action_default_ask_rephrase - action_two_stage_fallback - action_back - … - utter_greet - utter_menu - utter_urlAvailable - utter_lead_q1 - utter_lead_q2 - utter_lead_q3 - utter_lead_q4 - utter_lead_q5 - lead_form_p1 - lead_form_p2 - lead_form_p3
  • [/quote]
  • [/quote]