commit 5608bc14f3e4b91cce32e3cd4282020785b8954c Author: miquel Date: Tue Apr 5 11:25:59 2022 +0200 first commit diff --git a/.rasa/cache/cache.db b/.rasa/cache/cache.db new file mode 100644 index 0000000..41ee7db Binary files /dev/null and b/.rasa/cache/cache.db differ diff --git a/.rasa/cache/tmp0bfzeafz/patterns.pkl b/.rasa/cache/tmp0bfzeafz/patterns.pkl new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.rasa/cache/tmp0bfzeafz/patterns.pkl @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.rasa/cache/tmp30z_eej1/checkpoint b/.rasa/cache/tmp30z_eej1/checkpoint new file mode 100644 index 0000000..3688510 --- /dev/null +++ b/.rasa/cache/tmp30z_eej1/checkpoint @@ -0,0 +1,2 @@ +model_checkpoint_path: "unexpected_intent_policy.tf_model" +all_model_checkpoint_paths: "unexpected_intent_policy.tf_model" diff --git a/.rasa/cache/tmp30z_eej1/featurizer.json b/.rasa/cache/tmp30z_eej1/featurizer.json new file mode 100644 index 0000000..e37e36d --- /dev/null +++ b/.rasa/cache/tmp30z_eej1/featurizer.json @@ -0,0 +1 @@ +{"py/object": "rasa.core.featurizers.tracker_featurizers.IntentMaxHistoryTrackerFeaturizer", "state_featurizer": {"py/object": "rasa.core.featurizers.single_state_featurizer.IntentTokenizerSingleStateFeaturizer", "_default_feature_states": {"intent": {"affirm": 0, "back": 1, "bot_challenge": 2, "deny": 3, "goodbye": 4, "greet": 5, "mood_great": 6, "mood_unhappy": 7, "nlu_fallback": 8, "out_of_scope": 9, "restart": 10, "session_start": 11}, "action_name": {"action_listen": 0, "action_restart": 1, "action_session_start": 2, "action_default_fallback": 3, "action_deactivate_loop": 4, "action_revert_fallback_events": 5, "action_default_ask_affirmation": 6, "action_default_ask_rephrase": 7, "action_two_stage_fallback": 8, "action_unlikely_intent": 9, "action_back": 10, "...": 11, "action_extract_slots": 12, "utter_cheer_up": 13, "utter_did_that_help": 14, "utter_goodbye": 15, "utter_greet": 16, "utter_happy": 17, "utter_iamabot": 18}, "entities": {}, "slots": {}, "active_loop": {}}, "action_texts": [], "entity_tag_specs": null}, "max_history": 5, "remove_duplicates": true} \ No newline at end of file diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.data_example.pkl b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.data_example.pkl new file mode 100644 index 0000000..36f5886 Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.data_example.pkl differ diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.entity_tag_specs.json b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.entity_tag_specs.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.entity_tag_specs.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.fake_features.pkl b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.fake_features.pkl new file mode 100644 index 0000000..4288de5 Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.fake_features.pkl differ diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.label_data.pkl b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.label_data.pkl new file mode 100644 index 0000000..8051c2e Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.label_data.pkl differ diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.label_quantiles.pkl b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.label_quantiles.pkl new file mode 100644 index 0000000..0a2664a Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.label_quantiles.pkl differ diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.meta.pkl b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.meta.pkl new file mode 100644 index 0000000..7fe2354 Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.meta.pkl differ diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.priority.pkl b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.priority.pkl new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.priority.pkl @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.tf_model.data-00000-of-00001 b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.tf_model.data-00000-of-00001 new file mode 100644 index 0000000..4862353 Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.tf_model.data-00000-of-00001 differ diff --git a/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.tf_model.index b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.tf_model.index new file mode 100644 index 0000000..393e000 Binary files /dev/null and b/.rasa/cache/tmp30z_eej1/unexpected_intent_policy.tf_model.index differ diff --git a/.rasa/cache/tmp51z_lv1v/featurizer.json b/.rasa/cache/tmp51z_lv1v/featurizer.json new file mode 100644 index 0000000..44f6957 --- /dev/null +++ b/.rasa/cache/tmp51z_lv1v/featurizer.json @@ -0,0 +1 @@ +{"py/object": "rasa.core.featurizers.tracker_featurizers.MaxHistoryTrackerFeaturizer", "state_featurizer": null, "max_history": null, "remove_duplicates": true} \ No newline at end of file diff --git a/.rasa/cache/tmp51z_lv1v/rule_only_data.json b/.rasa/cache/tmp51z_lv1v/rule_only_data.json new file mode 100644 index 0000000..c7335d7 --- /dev/null +++ b/.rasa/cache/tmp51z_lv1v/rule_only_data.json @@ -0,0 +1,4 @@ +{ + "rule_only_slots": [], + "rule_only_loops": [] +} \ No newline at end of file diff --git a/.rasa/cache/tmp51z_lv1v/rule_policy.json b/.rasa/cache/tmp51z_lv1v/rule_policy.json new file mode 100644 index 0000000..548fd7b --- /dev/null +++ b/.rasa/cache/tmp51z_lv1v/rule_policy.json @@ -0,0 +1,22 @@ +{ + "lookup": { + "rules": { + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"goodbye\"}}]": "utter_goodbye", + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"goodbye\"}}, {\"prev_action\": {\"action_name\": \"utter_goodbye\"}, \"user\": {\"intent\": \"goodbye\"}}]": "action_listen", + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"bot_challenge\"}}]": "utter_iamabot", + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"bot_challenge\"}}, {\"prev_action\": {\"action_name\": \"utter_iamabot\"}, \"user\": {\"intent\": \"bot_challenge\"}}]": "action_listen" + }, + "rule_only_slots": [], + "rule_only_loops": [], + "rules_for_loop_unhappy_path": {}, + "rules_not_in_stories": [ + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"bot_challenge\"}}]", + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"goodbye\"}}, {\"prev_action\": {\"action_name\": \"utter_goodbye\"}, \"user\": {\"intent\": \"goodbye\"}}]", + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"bot_challenge\"}}, {\"prev_action\": {\"action_name\": \"utter_iamabot\"}, \"user\": {\"intent\": \"bot_challenge\"}}]", + "predicting default action with intent session_start", + "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"goodbye\"}}]", + "predicting default action with intent back", + "predicting default action with intent restart" + ] + } +} \ No newline at end of file diff --git a/.rasa/cache/tmpft384abw/feature_to_idx_dict.pkl b/.rasa/cache/tmpft384abw/feature_to_idx_dict.pkl new file mode 100644 index 0000000..d2b9045 --- /dev/null +++ b/.rasa/cache/tmpft384abw/feature_to_idx_dict.pkl @@ -0,0 +1 @@ +{"json://{\"py/tuple\": [0, \"low\"]}": {"False": 0, "True": 1}, "json://{\"py/tuple\": [0, \"title\"]}": {"False": 2, "True": 3}, "json://{\"py/tuple\": [0, \"upper\"]}": {"False": 4, "True": 5}, "json://{\"py/tuple\": [1, \"BOS\"]}": {"False": 6, "True": 7}, "json://{\"py/tuple\": [1, \"EOS\"]}": {"False": 8, "True": 9}, "json://{\"py/tuple\": [1, \"digit\"]}": {"False": 10}, "json://{\"py/tuple\": [1, \"low\"]}": {"False": 11, "True": 12}, "json://{\"py/tuple\": [1, \"title\"]}": {"False": 13, "True": 14}, "json://{\"py/tuple\": [1, \"upper\"]}": {"False": 15, "True": 16}, "json://{\"py/tuple\": [2, \"low\"]}": {"False": 17, "True": 18}, "json://{\"py/tuple\": [2, \"title\"]}": {"False": 19, "True": 20}, "json://{\"py/tuple\": [2, \"upper\"]}": {"False": 21, "True": 22}} \ No newline at end of file diff --git a/.rasa/cache/tmpg9m3lp16/oov_words.json b/.rasa/cache/tmpg9m3lp16/oov_words.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.rasa/cache/tmpg9m3lp16/oov_words.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.rasa/cache/tmpg9m3lp16/vocabularies.pkl b/.rasa/cache/tmpg9m3lp16/vocabularies.pkl new file mode 100644 index 0000000..303261c --- /dev/null +++ b/.rasa/cache/tmpg9m3lp16/vocabularies.pkl @@ -0,0 +1 @@ +{"text": {"hey": 31, "hello": 30, "hi": 32, "there": 67, "good": 24, "morning": 43, "evening": 17, "moin": 42, "let": 39, "s": 54, "go": 22, "dude": 16, "goodmorning": 27, "goodevening": 26, "afternoon": 1, "cu": 12, "by": 7, "cee": 9, "you": 79, "later": 38, "night": 48, "bye": 8, "goodbye": 25, "have": 29, "a": 0, "nice": 47, "day": 13, "see": 58, "around": 5, "yes": 78, "y": 77, "indeed": 36, "of": 51, "course": 11, "that": 65, "sounds": 60, "correct": 10, "no": 49, "n": 45, "never": 46, "i": 35, "don": 15, "t": 63, "think": 68, "so": 59, "like": 40, "way": 73, "not": 50, "really": 53, "perfect": 52, "great": 28, "amazing": 3, "feeling": 21, "king": 37, "wonderful": 75, "am": 2, "very": 71, "going": 23, "to": 69, "save": 57, "the": 66, "world": 76, "super": 62, "stoked": 61, "extremely": 18, "my": 44, "was": 72, "horrible": 33, "sad": 56, "feel": 20, "well": 74, "disappointed": 14, "m": 41, "unhappy": 70, "extremly": 19, "saad": 55, "are": 4, "bot": 6, "human": 34, "talking": 64}, "intent": {"greet": 4, "goodbye": 3, "affirm": 0, "deny": 2, "mood_great": 5, "mood_unhappy": 6, "bot_challenge": 1}, "response": null, "action_name": {"action_listen": 6, "action_restart": 7, "action_session_start": 9, "action_default_fallback": 4, "action_deactivate_loop": 1, "action_revert_fallback_events": 8, "action_default_ask_affirmation": 2, "action_default_ask_rephrase": 3, "action_two_stage_fallback": 10, "action_unlikely_intent": 11, "action_back": 0, "action_extract_slots": 5, "utter_cheer_up": 12, "utter_did_that_help": 13, "utter_goodbye": 14, "utter_greet": 15, "utter_happy": 16, "utter_iamabot": 17}, "action_text": null, "intent_response_key": null} \ No newline at end of file diff --git a/.rasa/cache/tmphvwxikba/oov_words.json b/.rasa/cache/tmphvwxikba/oov_words.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.rasa/cache/tmphvwxikba/oov_words.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.rasa/cache/tmphvwxikba/vocabularies.pkl b/.rasa/cache/tmphvwxikba/vocabularies.pkl new file mode 100644 index 0000000..5cd2188 --- /dev/null +++ b/.rasa/cache/tmphvwxikba/vocabularies.pkl @@ -0,0 +1 @@ +{"text": {" ": 0, "h": 333, "e": 246, "y": 684, " h": 49, "he": 341, "ey": 304, "y ": 685, " he": 52, "hey": 347, "ey ": 305, " hey": 54, "hey ": 348, "l": 397, "o": 481, "el": 265, "ll": 416, "lo": 422, "o ": 482, "hel": 343, "ell": 269, "llo": 418, "lo ": 423, " hel": 53, "hell": 344, "ello": 271, "llo ": 419, "i": 361, "hi": 349, "i ": 362, " hi": 55, "hi ": 350, " hi ": 56, "t": 610, "r": 544, " t": 116, "th": 621, "er": 282, "re": 546, "e ": 247, " th": 120, "the": 624, "her": 345, "ere": 284, "re ": 547, " the": 122, "ther": 626, "here": 346, "ere ": 285, "g": 319, "d": 216, " g": 42, "go": 324, "oo": 505, "od": 483, "d ": 217, " go": 43, "goo": 328, "ood": 506, "od ": 484, " goo": 46, "good": 329, "ood ": 507, "m": 426, "n": 446, " m": 75, "mo": 439, "or": 513, "rn": 567, "ni": 463, "in": 375, "ng": 458, "g ": 320, " mo": 77, "mor": 442, "orn": 516, "rni": 568, "nin": 468, "ing": 379, "ng ": 459, " mor": 79, "morn": 443, "orni": 517, "rnin": 569, "ning": 469, "ing ": 380, "v": 658, " e": 34, "ev": 297, "ve": 659, "en": 279, " ev": 35, "eve": 298, "ven": 661, "eni": 280, " eve": 36, "even": 299, "veni": 662, "enin": 281, "oi": 493, "n ": 447, "moi": 440, "oin": 494, "in ": 376, " moi": 78, "moin": 441, "oin ": 495, " l": 68, "le": 404, "et": 295, "t ": 611, " le": 71, "let": 406, "et ": 296, " let": 72, "let ": 407, "s": 585, " s": 101, "s ": 586, " s ": 102, "go ": 325, " go ": 44, "u": 636, " d": 25, "du": 243, "ud": 638, "de": 224, " du": 32, "dud": 244, "ude": 639, "de ": 225, " dud": 33, "dude": 245, "ude ": 640, "dm": 235, "odm": 489, "dmo": 236, "oodm": 510, "odmo": 490, "dmor": 237, "ode": 487, "dev": 230, "oode": 509, "odev": 488, "deve": 231, "a": 147, "f": 306, " a": 1, "af": 154, "ft": 313, "te": 615, "no": 472, "on": 501, " af": 3, "aft": 155, "fte": 314, "ter": 618, "ern": 289, "rno": 570, "noo": 474, "oon": 511, "on ": 502, " aft": 4, "afte": 156, "fter": 315, "tern": 620, "erno": 290, "rnoo": 571, "noon": 475, "oon ": 512, "c": 202, " c": 17, "cu": 214, "u ": 637, " cu": 23, "cu ": 215, " cu ": 24, "b": 191, " b": 11, "by": 198, " by": 14, "by ": 199, " by ": 15, "ce": 203, "ee": 258, " ce": 18, "cee": 205, "ee ": 259, " cee": 19, "cee ": 206, " y": 141, "yo": 690, "ou": 523, " yo": 145, "you": 691, "ou ": 524, " you": 146, "you ": 692, "la": 399, "at": 179, "r ": 545, " la": 69, "lat": 400, "ate": 181, "er ": 283, " lat": 70, "late": 401, "ater": 182, "ter ": 619, " n": 82, "ig": 369, "gh": 321, "ht": 356, " ni": 86, "nig": 466, "igh": 370, "ght": 322, "ht ": 357, " nig": 88, "nigh": 467, "ight": 371, "ght ": 323, "ye": 686, "bye": 200, "ye ": 687, " bye": 16, "bye ": 201, "db": 221, "odb": 485, "dby": 222, "oodb": 508, "odby": 486, "dbye": 223, "ha": 334, "av": 183, " ha": 50, "hav": 339, "ave": 184, "ve ": 660, " hav": 51, "have": 340, "ave ": 185, "a ": 148, " a ": 2, "ic": 366, "nic": 464, "ice": 367, "ce ": 204, " nic": 87, "nice": 465, "ice ": 368, "da": 218, "ay": 186, " da": 26, "day": 219, "ay ": 187, " day": 27, "day ": 220, "se": 596, " se": 107, "see": 598, " see": 108, "see ": 599, "ar": 172, "ro": 572, "un": 646, "nd": 448, " ar": 8, "aro": 175, "rou": 573, "oun": 525, "und": 647, "nd ": 449, " aro": 10, "arou": 176, "roun": 574, "ound": 526, "und ": 648, "es": 293, " ye": 143, "yes": 688, "es ": 294, " yes": 144, "yes ": 689, " y ": 142, " i": 61, "ed": 256, " in": 63, "ind": 377, "nde": 450, "dee": 226, "eed": 260, "ed ": 257, " ind": 64, "inde": 378, "ndee": 451, "deed": 227, "eed ": 261, " o": 92, "of": 491, "f ": 307, " of": 93, "of ": 492, " of ": 94, "co": 207, "ur": 655, "rs": 580, " co": 20, "cou": 210, "our": 527, "urs": 656, "rse": 581, "se ": 597, " cou": 22, "cour": 211, "ours": 528, "urse": 657, "rse ": 582, "tha": 622, "hat": 337, "at ": 180, " tha": 121, "that": 623, "hat ": 338, "so": 600, "ds": 241, " so": 109, "sou": 602, "nds": 453, "ds ": 242, " sou": 111, "soun": 603, "unds": 649, "nds ": 454, "rr": 575, "ec": 253, "ct": 212, "cor": 208, "orr": 518, "rre": 576, "rec": 551, "ect": 254, "ct ": 213, " cor": 21, "corr": 209, "orre": 519, "rrec": 577, "rect": 552, "ect ": 255, " no": 89, "no ": 473, " no ": 90, " n ": 83, "ne": 455, " ne": 84, "nev": 456, "ver": 663, " nev": 85, "neve": 457, "ever": 300, "ver ": 664, " i ": 62, "do": 238, " do": 30, "don": 239, " don": 31, "don ": 240, " t ": 117, "k": 388, "nk": 470, "k ": 389, "thi": 627, "hin": 351, "ink": 381, "nk ": 471, " thi": 123, "thin": 628, "hink": 352, "ink ": 382, "so ": 601, " so ": 110, "li": 408, "ik": 372, "ke": 390, " li": 73, "lik": 409, "ike": 373, "ke ": 391, " lik": 74, "like": 410, "ike ": 374, "w": 666, " w": 132, "wa": 667, " wa": 133, "way": 670, " way": 135, "way ": 671, "ot": 521, "not": 476, "ot ": 522, " not": 91, "not ": 477, " r": 98, "ea": 248, "al": 157, "ly": 424, " re": 99, "rea": 548, "eal": 249, "all": 160, "lly": 420, "ly ": 425, " rea": 100, "real": 549, "eall": 250, "ally": 161, "lly ": 421, "p": 529, " p": 95, "pe": 530, "rf": 556, "fe": 308, " pe": 96, "per": 531, "erf": 286, "rfe": 557, "fec": 309, " per": 97, "perf": 533, "erfe": 287, "rfec": 558, "fect": 310, "gr": 330, " gr": 47, "gre": 331, "eat": 251, " gre": 48, "grea": 332, "reat": 550, "eat ": 252, "z": 693, "am": 162, "ma": 428, "az": 188, "zi": 694, " am": 5, "ama": 164, "maz": 431, "azi": 189, "zin": 695, " ama": 7, "amaz": 165, "mazi": 432, "azin": 190, "zing": 696, " f": 39, " fe": 40, "fee": 311, "eel": 262, "eli": 267, "lin": 411, " fee": 41, "feel": 312, "eeli": 264, "elin": 268, "ling": 412, " k": 65, "ki": 394, " ki": 66, "kin": 395, " kin": 67, "king": 396, "wo": 675, "fu": 316, "ul": 641, "l ": 398, " wo": 138, "won": 676, "ond": 503, "der": 228, "rfu": 559, "ful": 317, "ul ": 642, " won": 139, "wond": 677, "onde": 504, "nder": 452, "derf": 229, "erfu": 288, "rful": 560, "ful ": 318, "m ": 427, "am ": 163, " am ": 6, " v": 129, "ry": 583, " ve": 130, "ery": 291, "ry ": 584, " ver": 131, "very": 665, "ery ": 292, "goi": 326, " goi": 45, "goin": 327, "oing": 496, "to": 629, " to": 124, "to ": 630, " to ": 125, "sa": 587, " sa": 103, "sav": 594, " sav": 106, "save": 595, "he ": 342, "the ": 625, "rl": 564, "ld": 402, "wor": 678, "orl": 514, "rld": 565, "ld ": 403, " wor": 140, "worl": 679, "orld": 515, "rld ": 566, "su": 607, "up": 652, " su": 114, "sup": 608, "upe": 653, " sup": 115, "supe": 609, "uper": 654, "per ": 532, "st": 604, "ok": 498, " st": 112, "sto": 605, "tok": 631, "oke": 499, "ked": 392, " sto": 113, "stok": 606, "toke": 632, "oked": 500, "ked ": 393, "x": 680, "ex": 301, "xt": 681, "tr": 633, "em": 274, "me": 433, " ex": 37, "ext": 302, "xtr": 682, "tre": 634, "rem": 553, "eme": 275, "mel": 434, "ely": 272, " ext": 38, "extr": 303, "xtre": 683, "trem": 635, "reme": 554, "emel": 276, "mely": 435, "ely ": 273, "my": 444, " my": 80, "my ": 445, " my ": 81, "as": 177, "was": 668, "as ": 178, " was": 134, "was ": 669, "ho": 353, "ri": 561, "ib": 363, "bl": 192, " ho": 57, "hor": 354, "rri": 578, "rib": 562, "ibl": 364, "ble": 193, "le ": 405, " hor": 58, "horr": 355, "orri": 520, "rrib": 579, "ribl": 563, "ible": 365, "ble ": 194, "ad": 152, "sad": 590, "ad ": 153, " sad": 105, "sad ": 591, "el ": 266, "eel ": 263, "we": 672, " we": 136, "wel": 673, "ll ": 417, " wel": 137, "well": 674, "ell ": 270, "di": 232, "is": 385, "ap": 168, "pp": 537, "po": 534, "nt": 478, " di": 28, "dis": 233, "isa": 386, "sap": 592, "app": 169, "ppo": 538, "poi": 535, "int": 383, "nte": 479, "ted": 616, " dis": 29, "disa": 234, "isap": 387, "sapp": 593, "appo": 170, "ppoi": 539, "poin": 536, "oint": 497, "inte": 384, "nted": 480, "ted ": 617, " m ": 76, " u": 126, "nh": 460, "py": 542, " un": 127, "unh": 650, "nha": 461, "hap": 335, "ppy": 540, "py ": 543, " unh": 128, "unha": 651, "nhap": 462, "happ": 336, "appy": 171, "ppy ": 541, "ml": 436, "eml": 277, "mly": 437, "reml": 555, "emly": 278, "mly ": 438, "aa": 149, "saa": 588, "aad": 150, " saa": 104, "saad": 589, "aad ": 151, "are": 173, " are": 9, "are ": 174, "bo": 195, " bo": 12, "bot": 196, " bot": 13, "bot ": 197, "hu": 358, "um": 643, "an": 166, " hu": 59, "hum": 359, "uma": 644, "man": 429, "an ": 167, " hum": 60, "huma": 360, "uman": 645, "man ": 430, "ta": 612, "lk": 413, " ta": 118, "tal": 613, "alk": 158, "lki": 414, " tal": 119, "talk": 614, "alki": 159, "lkin": 415}, "response": null, "action_text": null} \ No newline at end of file diff --git a/.rasa/cache/tmpl27zck2x/checkpoint b/.rasa/cache/tmpl27zck2x/checkpoint new file mode 100644 index 0000000..6258cbc --- /dev/null +++ b/.rasa/cache/tmpl27zck2x/checkpoint @@ -0,0 +1,2 @@ +model_checkpoint_path: "ted_policy.tf_model" +all_model_checkpoint_paths: "ted_policy.tf_model" diff --git a/.rasa/cache/tmpl27zck2x/featurizer.json b/.rasa/cache/tmpl27zck2x/featurizer.json new file mode 100644 index 0000000..29b6bfb --- /dev/null +++ b/.rasa/cache/tmpl27zck2x/featurizer.json @@ -0,0 +1 @@ +{"py/object": "rasa.core.featurizers.tracker_featurizers.MaxHistoryTrackerFeaturizer", "state_featurizer": {"py/object": "rasa.core.featurizers.single_state_featurizer.SingleStateFeaturizer", "_default_feature_states": {"intent": {"affirm": 0, "back": 1, "bot_challenge": 2, "deny": 3, "goodbye": 4, "greet": 5, "mood_great": 6, "mood_unhappy": 7, "nlu_fallback": 8, "out_of_scope": 9, "restart": 10, "session_start": 11}, "action_name": {"action_listen": 0, "action_restart": 1, "action_session_start": 2, "action_default_fallback": 3, "action_deactivate_loop": 4, "action_revert_fallback_events": 5, "action_default_ask_affirmation": 6, "action_default_ask_rephrase": 7, "action_two_stage_fallback": 8, "action_unlikely_intent": 9, "action_back": 10, "...": 11, "action_extract_slots": 12, "utter_cheer_up": 13, "utter_did_that_help": 14, "utter_goodbye": 15, "utter_greet": 16, "utter_happy": 17, "utter_iamabot": 18}, "entities": {}, "slots": {}, "active_loop": {}}, "action_texts": [], "entity_tag_specs": null}, "max_history": 5, "remove_duplicates": true} \ No newline at end of file diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.data_example.pkl b/.rasa/cache/tmpl27zck2x/ted_policy.data_example.pkl new file mode 100644 index 0000000..147ea3a Binary files /dev/null and b/.rasa/cache/tmpl27zck2x/ted_policy.data_example.pkl differ diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.entity_tag_specs.json b/.rasa/cache/tmpl27zck2x/ted_policy.entity_tag_specs.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.rasa/cache/tmpl27zck2x/ted_policy.entity_tag_specs.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.fake_features.pkl b/.rasa/cache/tmpl27zck2x/ted_policy.fake_features.pkl new file mode 100644 index 0000000..96161f1 Binary files /dev/null and b/.rasa/cache/tmpl27zck2x/ted_policy.fake_features.pkl differ diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.label_data.pkl b/.rasa/cache/tmpl27zck2x/ted_policy.label_data.pkl new file mode 100644 index 0000000..65f02e9 Binary files /dev/null and b/.rasa/cache/tmpl27zck2x/ted_policy.label_data.pkl differ diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.meta.pkl b/.rasa/cache/tmpl27zck2x/ted_policy.meta.pkl new file mode 100644 index 0000000..86eda44 Binary files /dev/null and b/.rasa/cache/tmpl27zck2x/ted_policy.meta.pkl differ diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.priority.pkl b/.rasa/cache/tmpl27zck2x/ted_policy.priority.pkl new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/.rasa/cache/tmpl27zck2x/ted_policy.priority.pkl @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.tf_model.data-00000-of-00001 b/.rasa/cache/tmpl27zck2x/ted_policy.tf_model.data-00000-of-00001 new file mode 100644 index 0000000..dbd9e70 Binary files /dev/null and b/.rasa/cache/tmpl27zck2x/ted_policy.tf_model.data-00000-of-00001 differ diff --git a/.rasa/cache/tmpl27zck2x/ted_policy.tf_model.index b/.rasa/cache/tmpl27zck2x/ted_policy.tf_model.index new file mode 100644 index 0000000..c751d0e Binary files /dev/null and b/.rasa/cache/tmpl27zck2x/ted_policy.tf_model.index differ diff --git a/.rasa/cache/tmppssmo2lt/featurizer.json b/.rasa/cache/tmppssmo2lt/featurizer.json new file mode 100644 index 0000000..44f6957 --- /dev/null +++ b/.rasa/cache/tmppssmo2lt/featurizer.json @@ -0,0 +1 @@ +{"py/object": "rasa.core.featurizers.tracker_featurizers.MaxHistoryTrackerFeaturizer", "state_featurizer": null, "max_history": null, "remove_duplicates": true} \ No newline at end of file diff --git a/.rasa/cache/tmppssmo2lt/memorized_turns.json b/.rasa/cache/tmppssmo2lt/memorized_turns.json new file mode 100644 index 0000000..e8c13b3 --- /dev/null +++ b/.rasa/cache/tmppssmo2lt/memorized_turns.json @@ -0,0 +1,16 @@ +{ + "lookup": { + "eJyLrq6NBQAEOAGx": "action_listen", + "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohvSg1taS2NhYA6dwbhQ==": "utter_greet", + "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohvSg1taSWgBmlJSWpRfEQpbhMiAUAQvc0lw==": "action_listen", + "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohvSg1taSWgBmlJSWpRfEQpeSZQMAVufn5KSDzE4EGxQIAPEFQdQ==": "utter_happy", + "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohvSg1taSWgBmlJSWpRfEQpeSZQMAVufn5KSDzE4l0SkZiQUElfmNiAVKZa5w=": "action_listen", + "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohvSg1taSWgBmlJSWpRfEQpeSZQMAVufn5KfGleRmJBQWVtbWxAN75UWc=": "utter_cheer_up", + "eJydjlEKgCAQRK/iATqBV4lYxJYUchVdgxDv3oL9G/0MM/B4zNr6olrKeIGx7CNp1UYBMgG1esfpCyMJWwtmYTzJZK2OjMh94qjMmGGg/wyTFyHGHSo5k9L97Yx1KFnTzLU9XiFuqQ==": "utter_did_that_help", + "eJytjlEKgCAQRK/iATqBV4lYRIcUahVbg5DunlD/RvQzzMDjMWM9B1VTxk7GSoisVb0LsVmh1TOWsAm4sWVDbkzgNkWrOQNydhxFBJlu9Juh82KN0VFhb1I63p2xHi1L+sPlgiPxRshj6QqnC1EGjek=": "action_listen", + "eJytj9EJwzAMRFfxAJ3Aq4QgRKzUglg2ilwoxrvXkP67tP0Rd/B4nJbWb64VpQfgZpzFu3YFEEzk3bscfBrJYOtJOhiWUc27uxJZnziqGSlc6HeGyYqUc4AqEUt5fjZmizRuLf9wBQ5gEQ0iHT8KJ3/ivrOm3tcXH2yoGw==": "utter_happy", + "eJytj0EKAyEMRa/iAXoCr1JKCGOmBsYomVgoMnevYLfFoe0m5MPn5eXajotrRekBuBhn8a6NBQQTefcOG+9G0rt1J+0dlh7Nu7sS2TFhVDNSGNXvCBOLlHOAKhFLeZ6TWSL1Wcs/WIEDWESDSNuPwMmfuK6s6ZzVuPcRcXsBe37Blg==": "action_listen", + "eJytj1EKwyAQRK/iAXoCr1LCInGIQrKKWQNFvHsX7L+h7c8yA4/H7LP1h2m54CK3SkxsTRuB2B2w5lP2eApY2XqiKBNZq1izFUD6xFFFUGig3xkmK46UPFUOLufXvTFrgN6a/+Hy0ZMEJxSw/yic/OnBqlje0A2nVg==": "utter_goodbye", + "eJytj9EJwzAMRFfxAJ3Aq4Qg3PiIDYlsHLkQTHavIP0NDm1/hA6Op6ehHQ/TcsGL3CQxsTXtXIjdCms+YYmbgLVbNxTtRNYo1swFkKPDqCIodFa/I3Qs1pQ8VQ4u5/2ezBSgs+Z/sHz0JMEJBSw/Ajt/evBNp1mPPndcIcY3+fTA0w==": "action_listen" + } +} \ No newline at end of file diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.data_example.pkl b/.rasa/cache/tmprubqox60/DIETClassifier.data_example.pkl new file mode 100644 index 0000000..5b655c7 Binary files /dev/null and b/.rasa/cache/tmprubqox60/DIETClassifier.data_example.pkl differ diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.entity_tag_specs.json b/.rasa/cache/tmprubqox60/DIETClassifier.entity_tag_specs.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.rasa/cache/tmprubqox60/DIETClassifier.entity_tag_specs.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.index_label_id_mapping.json b/.rasa/cache/tmprubqox60/DIETClassifier.index_label_id_mapping.json new file mode 100644 index 0000000..c3099be --- /dev/null +++ b/.rasa/cache/tmprubqox60/DIETClassifier.index_label_id_mapping.json @@ -0,0 +1 @@ +{"0": "affirm", "1": "bot_challenge", "2": "deny", "3": "goodbye", "4": "greet", "5": "mood_great", "6": "mood_unhappy"} \ No newline at end of file diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.label_data.pkl b/.rasa/cache/tmprubqox60/DIETClassifier.label_data.pkl new file mode 100644 index 0000000..2526f76 Binary files /dev/null and b/.rasa/cache/tmprubqox60/DIETClassifier.label_data.pkl differ diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.sparse_feature_sizes.pkl b/.rasa/cache/tmprubqox60/DIETClassifier.sparse_feature_sizes.pkl new file mode 100644 index 0000000..fbf253b Binary files /dev/null and b/.rasa/cache/tmprubqox60/DIETClassifier.sparse_feature_sizes.pkl differ diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.tf_model.data-00000-of-00001 b/.rasa/cache/tmprubqox60/DIETClassifier.tf_model.data-00000-of-00001 new file mode 100644 index 0000000..a24e0e4 Binary files /dev/null and b/.rasa/cache/tmprubqox60/DIETClassifier.tf_model.data-00000-of-00001 differ diff --git a/.rasa/cache/tmprubqox60/DIETClassifier.tf_model.index b/.rasa/cache/tmprubqox60/DIETClassifier.tf_model.index new file mode 100644 index 0000000..b1ef02e Binary files /dev/null and b/.rasa/cache/tmprubqox60/DIETClassifier.tf_model.index differ diff --git a/.rasa/cache/tmprubqox60/checkpoint b/.rasa/cache/tmprubqox60/checkpoint new file mode 100644 index 0000000..57d6cf2 --- /dev/null +++ b/.rasa/cache/tmprubqox60/checkpoint @@ -0,0 +1,2 @@ +model_checkpoint_path: "DIETClassifier.tf_model" +all_model_checkpoint_paths: "DIETClassifier.tf_model" diff --git a/actions/__init__.py b/actions/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/actions/__pycache__/__init__.cpython-39.pyc b/actions/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..552f09d Binary files /dev/null and b/actions/__pycache__/__init__.cpython-39.pyc differ diff --git a/actions/__pycache__/actions.cpython-39.pyc b/actions/__pycache__/actions.cpython-39.pyc new file mode 100644 index 0000000..67b26ab Binary files /dev/null and b/actions/__pycache__/actions.cpython-39.pyc differ diff --git a/actions/actions.py b/actions/actions.py new file mode 100644 index 0000000..8bf1f75 --- /dev/null +++ b/actions/actions.py @@ -0,0 +1,27 @@ +# This files contains your custom actions which can be used to run +# custom Python code. +# +# See this guide on how to implement these action: +# https://rasa.com/docs/rasa/custom-actions + + +# This is a simple example for a custom action which utters "Hello World!" + +# from typing import Any, Text, Dict, List +# +# from rasa_sdk import Action, Tracker +# from rasa_sdk.executor import CollectingDispatcher +# +# +# class ActionHelloWorld(Action): +# +# def name(self) -> Text: +# return "action_hello_world" +# +# def run(self, dispatcher: CollectingDispatcher, +# tracker: Tracker, +# domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: +# +# dispatcher.utter_message(text="Hello World!") +# +# return [] diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..d923b2f --- /dev/null +++ b/config.yml @@ -0,0 +1,46 @@ +# The config recipe. +# https://rasa.com/docs/rasa/model-configuration/ +recipe: default.v1 + +# 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 https://rasa.com/docs/rasa/tuning-your-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 https://rasa.com/docs/rasa/policies for more information. +# - name: MemoizationPolicy +# - name: RulePolicy +# - name: UnexpecTEDIntentPolicy +# max_history: 5 +# epochs: 100 +# - name: TEDPolicy +# max_history: 5 +# epochs: 100 +# constrain_similarities: true diff --git a/credentials.yml b/credentials.yml new file mode 100644 index 0000000..f052ef3 --- /dev/null +++ b/credentials.yml @@ -0,0 +1,33 @@ +# This file contains the credentials for the voice & chat platforms +# which your bot is using. +# https://rasa.com/docs/rasa/messaging-and-voice-channels + +rest: +# # you don't need to provide anything here - this channel doesn't +# # require any credentials + + +#facebook: +# verify: "" +# secret: "" +# page-access-token: "" + +#slack: +# slack_token: "" +# slack_channel: "" +# slack_signing_secret: "" + +#socketio: +# user_message_evt: +# bot_message_evt: +# session_persistence: + +#mattermost: +# url: "https:///api/v4" +# token: "" +# webhook_url: "" + +# This entry is needed if you are using Rasa X. The entry represents credentials +# for the Rasa X "channel", i.e. Talk to your bot and Share with guest testers. +rasa: + url: "http://localhost:5002/api" diff --git a/data/nlu.yml b/data/nlu.yml new file mode 100644 index 0000000..2f6c3f8 --- /dev/null +++ b/data/nlu.yml @@ -0,0 +1,91 @@ +version: "3.1" + +nlu: +- intent: greet + examples: | + - hey + - hello + - hi + - hello there + - good morning + - good evening + - moin + - hey there + - let's go + - hey dude + - goodmorning + - goodevening + - good afternoon + +- intent: goodbye + examples: | + - cu + - good by + - cee you later + - good night + - bye + - goodbye + - have a nice day + - see you around + - bye bye + - see you later + +- intent: affirm + examples: | + - yes + - y + - indeed + - of course + - that sounds good + - correct + +- intent: deny + examples: | + - no + - n + - never + - I don't think so + - don't like that + - no way + - not really + +- intent: mood_great + examples: | + - perfect + - great + - amazing + - feeling like a king + - wonderful + - I am feeling very good + - I am great + - I am amazing + - I am going to save the world + - super stoked + - extremely good + - so so perfect + - so good + - so perfect + +- intent: mood_unhappy + examples: | + - my day was horrible + - I am sad + - I don't feel very well + - I am disappointed + - super sad + - I'm so sad + - sad + - very sad + - unhappy + - not good + - not very good + - extremly sad + - so saad + - so sad + +- intent: bot_challenge + examples: | + - are you a bot? + - are you a human? + - am I talking to a bot? + - am I talking to a human? diff --git a/data/rules.yml b/data/rules.yml new file mode 100644 index 0000000..a9987ee --- /dev/null +++ b/data/rules.yml @@ -0,0 +1,13 @@ +version: "3.1" + +rules: + +- rule: Say goodbye anytime the user says goodbye + steps: + - intent: goodbye + - action: utter_goodbye + +- rule: Say 'I am a bot' anytime the user challenges + steps: + - intent: bot_challenge + - action: utter_iamabot diff --git a/data/stories.yml b/data/stories.yml new file mode 100644 index 0000000..6ff78ee --- /dev/null +++ b/data/stories.yml @@ -0,0 +1,30 @@ +version: "3.1" + +stories: + +- story: happy path + steps: + - intent: greet + - action: utter_greet + - intent: mood_great + - action: utter_happy + +- story: sad path 1 + steps: + - intent: greet + - action: utter_greet + - intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - intent: affirm + - action: utter_happy + +- story: sad path 2 + steps: + - intent: greet + - action: utter_greet + - intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - intent: deny + - action: utter_goodbye diff --git a/domain.yml b/domain.yml new file mode 100644 index 0000000..932195f --- /dev/null +++ b/domain.yml @@ -0,0 +1,34 @@ +version: "3.1" + +intents: + - greet + - goodbye + - affirm + - deny + - mood_great + - mood_unhappy + - bot_challenge + +responses: + utter_greet: + - text: "Hey! How are you?" + + utter_cheer_up: + - text: "Here is something to cheer you up:" + image: "https://i.imgur.com/nGF1K8f.jpg" + + utter_did_that_help: + - text: "Did that help you?" + + utter_happy: + - text: "Great, carry on!" + + utter_goodbye: + - text: "Bye" + + utter_iamabot: + - text: "I am a bot, powered by Rasa." + +session_config: + session_expiration_time: 60 + carry_over_slots_to_new_session: true diff --git a/endpoints.yml b/endpoints.yml new file mode 100644 index 0000000..1128e1d --- /dev/null +++ b/endpoints.yml @@ -0,0 +1,42 @@ +# This file contains the different endpoints your bot can use. + +# Server where the models are pulled from. +# https://rasa.com/docs/rasa/model-storage#fetching-models-from-a-server + +#models: +# url: http://my-server.com/models/default_core@latest +# wait_time_between_pulls: 10 # [optional](default: 100) + +# Server which runs your custom actions. +# https://rasa.com/docs/rasa/custom-actions + +#action_endpoint: +# url: "http://localhost:5055/webhook" + +# Tracker store which is used to store the conversations. +# By default the conversations are stored in memory. +# https://rasa.com/docs/rasa/tracker-stores + +#tracker_store: +# type: redis +# url: +# port: +# db: +# password: +# use_ssl: + +#tracker_store: +# type: mongod +# url: +# db: +# username: +# password: + +# Event broker which all conversation events should be streamed to. +# https://rasa.com/docs/rasa/event-brokers + +#event_broker: +# url: localhost +# username: username +# password: password +# queue: queue diff --git a/models/20220404-124507-cheerful-canvas.tar.gz b/models/20220404-124507-cheerful-canvas.tar.gz new file mode 100644 index 0000000..a9a2b20 Binary files /dev/null and b/models/20220404-124507-cheerful-canvas.tar.gz differ diff --git a/tests/test_stories.yml b/tests/test_stories.yml new file mode 100644 index 0000000..d46e39b --- /dev/null +++ b/tests/test_stories.yml @@ -0,0 +1,91 @@ +#### This file contains tests to evaluate that your bot behaves as expected. +#### If you want to learn more, please see the docs: https://rasa.com/docs/rasa/testing-your-assistant + +stories: +- story: happy path 1 + steps: + - user: | + hello there! + intent: greet + - action: utter_greet + - user: | + amazing + intent: mood_great + - action: utter_happy + +- story: happy path 2 + steps: + - user: | + hello there! + intent: greet + - action: utter_greet + - user: | + amazing + intent: mood_great + - action: utter_happy + - user: | + bye-bye! + intent: goodbye + - action: utter_goodbye + +- story: sad path 1 + steps: + - user: | + hello + intent: greet + - action: utter_greet + - user: | + not good + intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - user: | + yes + intent: affirm + - action: utter_happy + +- story: sad path 2 + steps: + - user: | + hello + intent: greet + - action: utter_greet + - user: | + not good + intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - user: | + not really + intent: deny + - action: utter_goodbye + +- story: sad path 3 + steps: + - user: | + hi + intent: greet + - action: utter_greet + - user: | + very terrible + intent: mood_unhappy + - action: utter_cheer_up + - action: utter_did_that_help + - user: | + no + intent: deny + - action: utter_goodbye + +- story: say goodbye + steps: + - user: | + bye-bye! + intent: goodbye + - action: utter_goodbye + +- story: bot challenge + steps: + - user: | + are you a bot? + intent: bot_challenge + - action: utter_iamabot