After upgrading rasa to rasa==2.0.4 from rasa==2.0.0. I have trained both core and nlu using the single command that is:
rasa train --domain ai/pre_built_bots/bot_name/domain.yml --config ai/pre_built_bots/bot_name/config_nlu.yml --data ai/pre_built_bots/bot_name/data/ --out ai/pre_built_bots/bot_name/models/
My training data contains single story:
version: “2.0” stories:
- story: inform - 1568286231.0008 steps:
- intent: inform
- action: utter_inform
And these rules having no rule for inform:
version: "2.0"
rules:
- rule: respond to FAQs
steps:
- intent: faq
- action: utter_faq
- rule: utter_greetings after greetings at conversation start
conversation_start: true
steps:
- intent: greetings.hello
- action: utter_greetings.hello
- action: utter_welcome_message
# - rule: Rule to map `greetings.hello` intent to `action_utterances_handler` (automatic conversion)
# steps:
# - intent: greetings.hello
# - action: action_utterances_handler
- rule: Rule to map `complaints.unanswered_phone_call` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: complaints.unanswered_phone_call
- action: action_utterances_handler
- rule: Rule to map `complaints.donation` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: complaints.donation
- action: action_utterances_handler
- rule: Rule to map `contact.us` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: contact.us
- action: action_utterances_handler
- rule: Rule to map `menu.main_message` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: menu.main_message
- action: action_utterances_handler
- rule: Rule to map `daig.total_recipients` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: daig.total_recipients
- action: action_utterances_handler
- rule: Rule to map `daig.terms_and_conditions` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: daig.terms_and_conditions
- action: action_utterances_handler
- rule: Rule to map `daig.items` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: daig.items
- action: action_utterances_handler
- rule: Rule to map `daig.donate` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: daig.donate
- action: action_utterances_handler
- rule: Rule to map `daig.distribution_process` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: daig.distribution_process
- action: action_utterances_handler
- rule: Rule to map `daig.cost` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: daig.cost
- action: action_utterances_handler
- rule: Rule to map `volunteer.join` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: volunteer.join
- action: action_utterances_handler
- rule: Rule to map `volunteer.distribution` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: volunteer.distribution
- action: action_utterances_handler
- rule: Rule to map `out_of_scope` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: out_of_scope
- action: action_utterances_handler
- rule: Rule to map `get_started` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: get_started
- action: action_utterances_handler
- rule: Rule to map `attachment.received` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: attachment.received
- action: action_utterances_handler
- rule: Rule to map `user.needs_advice` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.needs_advice
- action: action_utterances_handler
- rule: Rule to map `user.hurry` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.hurry
- action: action_utterances_handler
- rule: Rule to map `user.happy` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.happy
- action: action_utterances_handler
- rule: Rule to map `user.good` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.good
- action: action_utterances_handler
- rule: Rule to map `user.going_to_bed` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.going_to_bed
- action: action_utterances_handler
- rule: Rule to map `user.confirm_later` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.confirm_later
- action: action_utterances_handler
- rule: Rule to map `user.bored` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.bored
- action: action_utterances_handler
- rule: Rule to map `greetings.whatsup` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.whatsup
- action: action_utterances_handler
- rule: Rule to map `greetings.salam` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.salam
- action: action_utterances_handler
- rule: Rule to map `greetings.nice_to_talk_to_you` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.nice_to_talk_to_you
- action: action_utterances_handler
- rule: Rule to map `greetings.nice_to_see_you` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.nice_to_see_you
- action: action_utterances_handler
- rule: Rule to map `greetings.mashaallah` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.mashaallah
- action: action_utterances_handler
- rule: Rule to map `greetings.jazakallah` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.jazakallah
- action: action_utterances_handler
- rule: Rule to map `greetings.goodmorning` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.goodmorning
- action: action_utterances_handler
- rule: Rule to map `greetings.emoji` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.emoji
- action: action_utterances_handler
- rule: Rule to map `greetings.bye` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.bye
- action: action_utterances_handler
- rule: Rule to map `greetings.allah_hafiz` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.allah_hafiz
- action: action_utterances_handler
- rule: Rule to map `geetings.inshaallah` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: geetings.inshaallah
- action: action_utterances_handler
- rule: Rule to map `deny` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: deny
- action: action_utterances_handler
- rule: Rule to map `appraisal.welcome` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: appraisal.welcome
- action: action_utterances_handler
- rule: Rule to map `appraisal.thank_you` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: appraisal.thank_you
- action: action_utterances_handler
- rule: Rule to map `appraisal.good` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: appraisal.good
- action: action_utterances_handler
- rule: Rule to map `appraisal.bad` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: appraisal.bad
- action: action_utterances_handler
- rule: Rule to map `agent.what_can_do` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.what_can_do
- action: action_utterances_handler
- rule: Rule to map `agent.happy` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.happy
- action: action_utterances_handler
- rule: Rule to map `agent.good` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.good
- action: action_utterances_handler
- rule: Rule to map `agent.chatbot` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.chatbot
- action: action_utterances_handler
- rule: Rule to map `agent.can_you_help` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.can_you_help
- action: action_utterances_handler
- rule: Rule to map `affirm` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: affirm
- action: action_utterances_handler
- rule: Rule to map `lunch.process` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: lunch.process
- action: action_utterances_handler
- rule: Rule to map `lunch.donors` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: lunch.donors
- action: action_utterances_handler
- rule: Rule to map `lunch.donate` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: lunch.donate
- action: action_utterances_handler
- rule: Rule to map `ration.terms_&_conditions` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: ration.terms_&_conditions
- action: action_utterances_handler
- rule: Rule to map `ration.rizqbanks` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: ration.rizqbanks
- action: action_utterances_handler
- rule: Rule to map `ration.process` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: ration.process
- action: action_utterances_handler
- rule: Rule to map `ration.items` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: ration.items
- action: action_utterances_handler
- rule: Rule to map `ration.donate` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: ration.donate
- action: action_utterances_handler
- rule: Rule to map `ration.cost` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: ration.cost
- action: action_utterances_handler
- rule: Rule to map `job.apply` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: job.apply
- action: action_utterances_handler
- rule: Rule to map `donation.zakat` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: donation.zakat
- action: action_utterances_handler
- rule: Rule to map `donation.proof` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: donation.proof
- action: action_utterances_handler
- rule: Rule to map `donation.different` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: donation.different
- action: action_utterances_handler
- rule: Rule to map `donation.confirmation` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: donation.confirmation
- action: action_utterances_handler
- rule: Rule to map `donation.change` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: donation.change
- action: action_utterances_handler
- rule: Rule to map `donation.cash_collection` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: donation.cash_collection
- action: action_utterances_handler
- rule: Rule to map `beneficiary.verification` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: beneficiary.verification
- action: action_utterances_handler
- rule: Rule to map `beneficiary.status` intent to `beneficiary.status_form` (automatic conversion)
steps:
- intent: beneficiary.status
- action: beneficiary.status_form
- rule: Rule to map `beneficiary.register` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: beneficiary.register
- action: action_utterances_handler
- rule: Rule to map `beneficiary.reference` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: beneficiary.reference
- action: action_utterances_handler
- rule: Rule to map `beneficiary.ration` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: beneficiary.ration
- action: action_utterances_handler
# - rule: Rule to map `bachao.terms_and_conditions` intent to `action_utterances_handler` (automatic conversion)
# steps:
# - intent: bachao.terms_and_conditions
# - action: action_utterances_handler
# - rule: Rule to map `bachao.process` intent to `action_utterances_handler` (automatic conversion)
# steps:
# - intent: bachao.process
# - action: action_utterances_handler
# - rule: Rule to map `bachao.donate` intent to `action_utterances_handler` (automatic conversion)
# steps:
# - intent: bachao.donate
# - action: action_utterances_handler
- rule: Rule to map `about.team` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.team
- action: action_utterances_handler
- rule: Rule to map `about.social_media` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.social_media
- action: action_utterances_handler
- rule: Rule to map `about.services` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.services
- action: action_utterances_handler
- rule: Rule to map `about.rizq` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.rizq
- action: action_utterances_handler
- rule: Rule to map `about.partners` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.partners
- action: action_utterances_handler
- rule: Rule to map `about.operation` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.operation
- action: action_utterances_handler
- rule: Rule to map `about.location` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.location
- action: action_utterances_handler
- rule: Rule to map `about.founders` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.founders
- action: action_utterances_handler
- rule: Rule to map `about.donating` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.donating
- action: action_utterances_handler
- rule: Rule to map `about.contact` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.contact
- action: action_utterances_handler
- rule: Rule to map `about.blog` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: about.blog
- action: action_utterances_handler
- rule: Rule to map `form_deactivate` intent to `action_form_deactivate` (automatic conversion)
steps:
- intent: form_deactivate
- action: action_form_deactivate
- rule: Rule to map `increment_form_mapping_counter` intent to `action_increment_form_mapping_counter` (automatic conversion)
steps:
- intent: increment_form_mapping_counter
- action: action_increment_form_mapping_counter
- rule: Rule to map `None` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: None
- action: action_utterances_handler
- rule: Rule to map `dialog.hold_on` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: dialog.hold_on
- action: action_utterances_handler
- rule: Rule to map `agent.who_are_you` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.who_are_you
- action: action_utterances_handler
- rule: Rule to map `user.waits` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.waits
- action: action_utterances_handler
- rule: Rule to map `user.back` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.back
- action: action_utterances_handler
- rule: Rule to map `user.confused` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.confused
- action: action_utterances_handler
- rule: Rule to map `user.busy` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: user.busy
- action: action_utterances_handler
- rule: Rule to map `agent.bad` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.bad
- action: action_utterances_handler
- rule: Rule to map `emoji.angry` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: emoji.angry
- action: action_utterances_handler
- rule: Rule to map `greetings.how_are_you` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.how_are_you
- action: action_utterances_handler
- rule: Rule to map `greetings.nice_to_meet_you` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: greetings.nice_to_meet_you
- action: action_utterances_handler
- rule: Rule to map `agent.sure` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: agent.sure
- action: action_utterances_handler
- rule: Rule to map `dialog.wrong` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: dialog.wrong
- action: action_utterances_handler
- rule: Rule to map `emoji.happy` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: emoji.happy
- action: action_utterances_handler
- rule: Rule to map `emoji.sad` intent to `action_utterances_handler` (automatic conversion)
steps:
- intent: emoji.sad
- action: action_utterances_handler
- rule: Rule to handle messages with low NLU confidence (automated conversion from 'TwoStageFallbackPolicy')
steps:
- intent: nlu_fallback
- action: action_two_stage_fallback
Yet I am facing this error:
NLU model training completed. Training Core model… Processed story blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 622.30it/s, # trackers=1] Processed story blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 932.27it/s, # trackers=1] Processed story blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 409.92it/s, # trackers=2] Processed story blocks: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 306.92it/s, # trackers=3] Processed rules: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 96/96 [00:00<00:00, 958.74it/s, # trackers=1] Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2253.79it/s, # actions=3] Processed actions: 3it [00:00, 5291.38it/s, # examples=3] Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 1284.53it/s, # actions=9] Epochs: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:08<00:00, 12.35it/s, t_loss=0.213, loss=0.001, acc=1.000] 2020-11-09 08:50:57 INFO rasa.utils.tensorflow.models - Finished training. Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 96/96 [00:00<00:00, 2206.06it/s, # actions=195] Processed actions: 195it [00:00, 11103.88it/s, # examples=194] Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1706.39it/s, # actions=3] Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 96/96 [00:00<00:00, 130.09it/s] Processed trackers: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 97/97 [00:00<00:00, 128.58it/s] InvalidRule: Contradicting rules or stories found<font color="#EF2929">- the prediction of the action 'utter_inform' in story 'inform - 1568286231.0008' is contradicting with rule(s) '' which predicted action 'action_listen'.</font> <font color="#EF2929">Please update your stories and rules so that they don't contradict each other.</font> <font color="#EF2929">You can find more information about the usage of rules at https://rasa.com/docs/rasa/rules. </font> </pre>