Not able to export stories using interactive learning Rasa version (core=0.13.0,nlu=0.14.1)

tmbo
rasa-nlu
rasa-core

(Ajinkz) #1

Im using updated version of Rasa (core=0.13.0,nlu=0.14.1)

`? Do you want to stop?  Export & Quit
? Export stories to (if file exists, this will append the stories) stories_test.md
? Export NLU data to (if file exists, this will merge learned data with previous training examples) nlu.md
? Export domain file to (if file exists, this will be overwritten) domain.yml
2019-02-01 11:46:49 INFO     rasa_nlu.training_data.loading  - Training data format of nlu.md is md
2019-02-01 11:46:49 INFO     rasa_nlu.training_data.training_data  - Training data stats:
        - intent examples: 527 (96 distinct intents)
        - Found intents: 'Family_Management_Wandoo_Reader', 'product_info', 'Add_fb_thumb', 'Email_Organization_Create_Approval', 'say_mail', 'even
t_room_reserve', 'say_name', 'mood', 'Secured_access_content_HTTPS', 'Wandoo_reader_Image_Uploader', 'Wandoo_Reader_Themed_Banner', 'Username_has_a
lready_been_taken', 'Recommended_Image_Sizes', 'Wandoo_Reader_Require_Registration_Fields', 'Wandoo_Reader_Patron_Facing_Marketing_Material', 'patr
on_resend_email_verification', 'book_jacket_images_Wandoo_Reader', 'Scheduled_Email_Notifications', 'print_attendance_sheet', 'rss', 'Wandoo_Reader_Used_Year_Round', 'Email_Reservation_Edit_Patron', 'Email_Reservation_Payment_Reminder', 'Wandoo_Reader_2017', 'ask_whoisit', 'no_show', 'email_verification_affect_phone_text', 'MySQL_Performance_Tuning', 'Email_Reservation_Cancellation_Patron', 'Email_Reservation_Reminder', 'Events_Remove_single_date', 'Ongoing', 'out_of_scope', 'Email_Reservation_Edit_Staff', 'Email_Organization_Join_Approval', 'Managing_Security', 'prevent_bot_spam_abuse', 'email_verification_expire', 'Email_Reservation_Approval', 'logo_header', 'Wandoo_Reader_Quick_Program_Setup', 'wandoo_reader_relate_summer_reader', 'Verification_Email_Sent_Patron', 'Email_Reservation_Payment_Confirmation', 'Email_Organization_Create_Denial', 'server_move', 'Secure_Patron_Information', 'Email_Reservation_Restore_Patron', 'goodbye', 'Email_New_Reservation_New_Patron', 'patron_not_receive_verify_mail', 'Email_Reservation_Restore_Staff', 'ILS', 'start_receive_email', 'Locate_Unsecured_content_in_HTTPS_page', 'email_verify_trigger_action', 'email_verify_in_bulk', 'Unconfirmed_Patron_Text', 'Wandoo_Reader_2018', 'Configure_Email', 'Email_Reservation_Confirmation', 'Email_Reservation_Cancellation_Staff', 'Wandoo_Reader_2016', 'Email_Account_Verify', 'Wandoo_Reader_Game_Kids', 'Email_Password_Reset', 'patron_do_not_optin', 'Authentication_Evanced_Products', 'Email_Verification_Content', 'Authorize.net', 'email_verification_affect_registration_reservation', 'Append_Pay_Online', 'Set_Up_Challenges_Wandoo Reader', 'Reset_Delete_Wandoo_Reader_Program', 'Google_Analytics', 'Amazon_SES', 'Email_Organization_Join_Denial', 'Email_Reservation_Denial', 'Group_Registration_Wandoo_Reader', 'SignUp_Events', 'Email_Organization_Create_Confirmation', 'Verification_Email_Sent_Staff', 'email_verify_affect_summer_reader', 'greet', 'Wandoo_Reader_Add_Program_Quick_Tab', 'email', 'Wandoo_Reader_Awards_Setup', 'Wandoo_Reader_Add_Program_Registration_Tab', 'Wandoo_Reader_Game_Difficulty_Level_Progression', 'difficulty_level_Wandoo_Reader', 'wandoo_version_history', 'Wandoo_Reader_Program_Setup_Details_Tab', 'gratitude', 'email_look_change', 'changes_spaces', 'Email_Organization_Join_Confirmation'
        - entity examples: 65 (4 distinct entities)
        - found entities: 'positive', 'mail', 'name', 'negative'

2019-02-01 11:46:49 INFO     rasa_nlu.training_data.training_data  - Training data stats:
        - intent examples: 11 (10 distinct intents)
        - Found intents: 'Wandoo_Reader_Game_Kids', 'ask_whoisit', 'out_of_scope', 'utter_YES', 'greet', 'Wandoo_Reader_Add_Program_Quick_Tab', 'say_name', 'mood', 'goodbye', 'difficulty_level_Wandoo_Reader'
        - entity examples: 0 (0 distinct entities)
        - found entities:

2019-02-01 11:46:49 INFO     rasa_nlu.training_data.training_data  - Training data stats:
        - intent examples: 538 (97 distinct intents)
        - Found intents: 'Family_Management_Wandoo_Reader', 'product_info', 'Add_fb_thumb', 'Email_Organization_Create_Approval', 'say_mail', 'event_room_reserve', 'say_name', 'mood', 'Secured_access_content_HTTPS', 'Wandoo_reader_Image_Uploader', 'Wandoo_Reader_Themed_Banner', 'Username_has_already_been_taken', 'Recommended_Image_Sizes', 'Wandoo_Reader_Require_Registration_Fields', 'Wandoo_Reader_Patron_Facing_Marketing_Material', 'patron_resend_email_verification', 'book_jacket_images_Wandoo_Reader', 'Scheduled_Email_Notifications', 'print_attendance_sheet', 'rss', 'Wandoo_Reader_Used_Year_Round', 'Email_Reservation_Edit_Patron', 'Email_Reservation_Payment_Reminder', 'Wandoo_Reader_2017', 'ask_whoisit', 'no_show', 'email_verification_affect_phone_text', 'MySQL_Performance_Tuning', 'Email_Reservation_Cancellation_Patron', 'Email_Reservation_Reminder', 'Events_Remove_single_date', 'Ongoing', 'out_of_scope', 'Email_Reservation_Edit_Staff', 'Email_Organization_Join_Approval', 'Managing_Security', 'prevent_bot_spam_abuse', 'email_verification_expire', 'Email_Reservation_Approval', 'logo_header', 'Wandoo_Reader_Quick_Program_Setup', 'wandoo_reader_relate_summer_reader', 'Verification_Email_Sent_Patron', 'Email_Reservation_Payment_Confirmation', 'Email_Organization_Create_Denial', 'server_move', 'Secure_Patron_Information', 'Email_Reservation_Restore_Patron', 'goodbye', 'Email_New_Reservation_New_Patron', 'patron_not_receive_verify_mail', 'Email_Reservation_Restore_Staff', 'ILS', 'start_receive_email', 'Locate_Unsecured_content_in_HTTPS_page', 'email_verify_trigger_action', 'email_verify_in_bulk', 'Unconfirmed_Patron_Text', 'Wandoo_Reader_2018', 'Configure_Email', 'Email_Reservation_Confirmation', 'Email_Reservation_Cancellation_Staff', 'Wandoo_Reader_2016', 'Email_Account_Verify', 'Wandoo_Reader_Game_Kids', 'Email_Password_Reset', 'patron_do_not_optin', 'Authentication_Evanced_Products', 'Email_Verification_Content', 'Authorize.net', 'email_verification_affect_registration_reservation', 'Append_Pay_Online', 'Set_Up_Challenges_Wandoo Reader', 'Reset_Delete_Wandoo_Reader_Program', 'Google_Analytics', 'Amazon_SES', 'Email_Organization_Join_Denial', 'Email_Reservation_Denial', 'Group_Registration_Wandoo_Reader', 'SignUp_Events', 'Email_Organization_Create_Confirmation', 'Verification_Email_Sent_Staff', 'email_verify_affect_summer_reader', 'utter_YES', 'greet', 'Wandoo_Reader_Add_Program_Quick_Tab', 'email', 'Wandoo_Reader_Awards_Setup', 'Wandoo_Reader_Add_Program_Registration_Tab', 'Wandoo_Reader_Game_Difficulty_Level_Progression', 'difficulty_level_Wandoo_Reader', 'wandoo_version_history', 'Wandoo_Reader_Program_Setup_Details_Tab', 'gratitude', 'email_look_change', 'changes_spaces', 'Email_Organization_Join_Confirmation'
        - entity examples: 65 (4 distinct entities)
        - found entities: 'positive', 'mail', 'name', 'negative'

2019-02-01 11:46:49 ERROR    rasa_core.training.interactive  - An exception occurred while recording messages.
Traceback (most recent call last):
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 1216, in record_messages
    finetune, sender_ids, plot_file)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 822, in _predict_till_next_listen
    finetune=finetune)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 925, in _validate_action
    is_correct = _ask_or_abort(question, sender_id, endpoint)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 315, in _ask_or_abort
    should_retry = _ask_if_quit(sender_id, endpoint)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 580, in _ask_if_quit
    _write_domain_to_file(domain_path, evts, endpoint)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 793, in _write_domain_to_file
    new_domain = Domain.from_dict(domain_dict)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/domain.py", line 98, in from_dict
    utter_templates = cls.collect_templates(data.get("templates", {}))
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/domain.py", line 211, in collect_templates
    for template_key, template_variations in yml_templates.items():
AttributeError: 'list' object has no attribute 'items'
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 1216, in record_messages
    finetune, sender_ids, plot_file)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 822, in _predict_till_next_listen
    finetune=finetune)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 925, in _validate_action
    is_correct = _ask_or_abort(question, sender_id, endpoint)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 315, in _ask_or_abort
    should_retry = _ask_if_quit(sender_id, endpoint)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 580, in _ask_if_quit
    _write_domain_to_file(domain_path, evts, endpoint)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/training/interactive.py", line 793, in _write_domain_to_file
    new_domain = Domain.from_dict(domain_dict)
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/domain.py", line 98, in from_dict
    utter_templates = cls.collect_templates(data.get("templates", {}))
  File "/home/ajinkz/miniconda3/envs/rasa3/lib/python3.6/site-packages/rasa_core/domain.py", line 211, in collect_templates
    for template_key, template_variations in yml_templates.items():![rasa_error|690x411](upload://yo4Sj2EN9Oqgn7SRAaYsVwaDLfT.png) 
AttributeError: 'list' object has no attribute 'items'`![rasa_error|690x411](upload://yo4Sj2EN9Oqgn7SRAaYsVwaDLfT.png)

(Tom Bocklisch) #2

I think this should be fixed in the latest core release, do you mind updating to the most recent version on pypi? There was an issue in the serialisation that we fixed - I suspect that it is the same one.


(Prasanna Ganeshu) #3

@tmbo, Im facing the same issue during my training process.But im using RASA version 13(rasa nlu : 0.14.1 ,rasa core :0.13.0 ) Please help me to solve this issue…


(Yang Ren) #4

Was this issue solved? I met it in rasa_core 0.13.3 when I was exporting the interactive training nlu data. @tmbo, @Ajinkz