Error oneline training


(Nabzina) #1

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 8 s’adresser pour faire une déclaration de naissance ? intent: Declarer_une_naissance.lieu 0.31 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 9 slot{“Declaration_naissance”: “d\u00e9claration de
naissance”}

Current slots: Declaration_de_deces: None, Declaration_naissance: déclaration de naissance


ERROR:rasa_core.training.interactive:An exception occurred while recording messages. Traceback (most recent call last): File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\interactive.py”, line 1282, in record_messages _predict_till_next_listen(endpoint, sender_id, finetune, sender_ids, plot_file) File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\interactive.py”, line 862, in _predict_till_next_listen _plot_trackers(sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]) File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\interactive.py”, line 1217, in _plot_trackers output_file=None, max_history=5) File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\visualization.py”, line 452, in visualize_neighborhood _merge_equivalent_nodes(graph, max_history) File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\visualization.py”, line 203, in _merge_equivalent_nodes _nodes_are_equivalent(graph, i, j, max_history): File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\visualization.py”, line 148, in _nodes_are_equivalent _fingerprint_node(graph, node_a, max_history) == _fingerprint_node(graph, node_b, max_history))) File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\visualization.py”, line 115, in _fingerprint_node for continuation in continuations} File “C:\Users\LENOVO\Anaconda3\envs\test\lib\site-packages\rasa_core\training\visualization.py”, line 115, in for continuation in continuations} TypeError: sequence item 3: expected str instance, dict found

I’am working in windows 10 and I’am refering to the weather tutorial of juste to create custom bot. Je suis francophone et je suis nouvelle dans la création de chatbot avec Rasa. S’il vous plait aider moi.


(Al Mahdi Marhou) #2

seem’s like the problem coming from the syntax , did you check that your training file is well formatted ? it’s not working even with the initial “stories.md” weather tutorial file.


(Nabzina) #3

OK m.mahdi, this is my training stories.md

story 01

  • Bienvenue{“salutation”: “salam”}
    • utter_Bienvenue
  • Declarer_une_naissance{“Declaration_naissance”: “d\u00e9clarer un enfant”}
    • slot{“Declaration_naissance”: “d\u00e9clarer un enfant”}
    • utter_Declarer_une_naissance
    • utter_ask_Declaration_naissance
  • Declarer_une_naissance.documents{“documents”: “documents”, “Declaration_naissance”: “d\u00e9clarer un enfant”}
    • slot{“Declaration_naissance”: “d\u00e9clarer un enfant”}
    • utter_Declarer_une_naissance.documents
  • Declarer_une_naissance.lieu{“lieu”: “où”, “Declaration_naissance”: “d\u00e9clarer un enfant”}
    • slot{“Declaration_naissance”: “d\u00e9clarer un enfant”}
    • utter_Declarer_une_naissance.lieu
  • Declarer_une_naissance.cout{“cout”: “cout”, “Declaration_naissance”: “d\u00e9clarer un enfant”}
    • slot{“Declaration_naissance”: “d\u00e9clarer un enfant”}
    • utter_Declarer_une_naissance.cout
  • Declarer_une_naissance.delai{“delai”: “durée”, “Declaration_naissance”: “d\u00e9claration de naissance”}
    • slot{“Declaration_naissance”: “d\u00e9claration de naissance”}
    • utter_Declarer_une_naissance.delai
  • Aurevoir{“quitter”: “merci”}
    • utter_Aurevoir

Generated Story -8761262081367832072

  • Bienvenue{“salutation”: “slt”}
    • utter_Bienvenue
  • Declarer_une_naissance{“Declaration_naissance”: “d\u00e9claration de naissance”}
    • slot{“Declaration_naissance”: “d\u00e9claration de naissance”}
    • utter_Declarer_une_naissance
    • utter_ask_Declaration_naissance
  • Declarer_une_naissance.documents{“documents”: “pi\u00e8ces”, “Declaration_naissance”: “d\u00e9clarer une naissance”}
    • slot{“Declaration_naissance”: “d\u00e9clarer une naissance”}
    • utter_Declarer_une_naissance.documents
  • Declarer_une_naissance.lieu{“lieu”: “o\u00f9”, “Declaration_naissance”: “d\u00e9clarer mon enfant”}
    • slot{“Declaration_naissance”: “d\u00e9clarer mon enfant”}
    • utter_Declarer_une_naissance.lieu
  • Declarer_une_naissance.cout{“cout”: “frais du dossier”, “Declaration_naissance”: “d\u00e9claration de naissance”}
    • slot{“Declaration_naissance”: “d\u00e9claration de naissance”}
    • utter_Declarer_une_naissance.cout
  • Declarer_une_naissance.delai{“delai”: “d\u00e9lai”, “Declaration_naissance”: “d\u00e9claration de naissance”}
    • slot{“Declaration_naissance”: “d\u00e9claration de naissance”}
    • utter_Declarer_une_naissance.delai
  • Aurevoir{“quitter”: “à la prochaine”}
    • utter_Aurevoir
  • Declarer_une_naissance{“Declaration_naissance”: “d\u00e9clarer une naissance”}
    • slot{“Declaration_naissance”: “d\u00e9clarer une naissance”}
    • utter_Declarer_une_naissance
    • utter_ask_Declaration_naissance
  • Declarer_une_naissance.documents{“documents”: “papiers”, “Declaration_naissance”: “d\u00e9clarer une naissance”}
    • slot{“Declaration_naissance”: “d\u00e9clarer une naissance”}
    • utter_Declarer_une_naissance.documents
  • Declarer_une_naissance.lieu{“lieu”: “lieu”, “Declaration_naissance”: “d\u00e9claration de naissance”}
    • slot{“Declaration_naissance”: “d\u00e9claration de naissance”}
    • utter_Declarer_une_naissance.lieu
  • Declarer_une_naissance.cout{“cout”: “montant \u00e0 payer”, “Declaration_naissance”: “d\u00e9clarer une naissance”}
    • slot{“Declaration_naissance”: “d\u00e9clarer une naissance”}
    • utter_Declarer_une_naissance.cout
  • Declarer_une_naissance.delai{“delai”: “dur\u00e9e”, “Declaration_naissance”: “d\u00e9claration d’une naissance”}
    • slot{“Declaration_naissance”: “d\u00e9claration d’une naissance”}
    • utter_Declarer_une_naissance.delai
  • Aurevoir{“quitter”: “bye”}
    • utter_Aurevoir