first commit
This commit is contained in:
commit
5608bc14f3
54 files changed
+471
No files matched your search
Vendored
BIN
Binary file not shown.
Vendored
+1
@@ -0,0 +1 @@
|
||||
[]
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
model_checkpoint_path: "unexpected_intent_policy.tf_model"
|
||||
all_model_checkpoint_paths: "unexpected_intent_policy.tf_model"
|
||||
+1
@@ -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}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
[]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
2
|
||||
BIN
Binary file not shown.
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
{"py/object": "rasa.core.featurizers.tracker_featurizers.MaxHistoryTrackerFeaturizer", "state_featurizer": null, "max_history": null, "remove_duplicates": true}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"rule_only_slots": [],
|
||||
"rule_only_loops": []
|
||||
}
|
||||
+22
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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}}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[]
|
||||
+1
@@ -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}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[]
|
||||
+1
@@ -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": 5Line truncated
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
model_checkpoint_path: "ted_policy.tf_model"
|
||||
all_model_checkpoint_paths: "ted_policy.tf_model"
|
||||
+1
@@ -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}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
[]
|
||||
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
1
|
||||
Binary file not shown.
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
{"py/object": "rasa.core.featurizers.tracker_featurizers.MaxHistoryTrackerFeaturizer", "state_featurizer": null, "max_history": null, "remove_duplicates": true}
|
||||
+16
@@ -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"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1 @@
|
||||
{"0": "affirm", "1": "bot_challenge", "2": "deny", "3": "goodbye", "4": "greet", "5": "mood_great", "6": "mood_unhappy"}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
model_checkpoint_path: "DIETClassifier.tf_model"
|
||||
all_model_checkpoint_paths: "DIETClassifier.tf_model"
|
||||
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
@@ -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 []
|
||||
+46
@@ -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
|
||||
@@ -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: "<verify>"
|
||||
# secret: "<your secret>"
|
||||
# page-access-token: "<your page access token>"
|
||||
|
||||
#slack:
|
||||
# slack_token: "<your slack token>"
|
||||
# slack_channel: "<the slack channel>"
|
||||
# slack_signing_secret: "<your slack signing secret>"
|
||||
|
||||
#socketio:
|
||||
# user_message_evt: <event name for user message>
|
||||
# bot_message_evt: <event name for bot messages>
|
||||
# session_persistence: <true/false>
|
||||
|
||||
#mattermost:
|
||||
# url: "https://<mattermost instance>/api/v4"
|
||||
# token: "<bot token>"
|
||||
# webhook_url: "<callback 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"
|
||||
@@ -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?
|
||||
@@ -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
|
||||
@@ -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
|
||||
+34
@@ -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
|
||||
@@ -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: <host of the redis instance, e.g. localhost>
|
||||
# port: <port of your redis instance, usually 6379>
|
||||
# db: <number of your database within redis, e.g. 0>
|
||||
# password: <password used for authentication>
|
||||
# use_ssl: <whether or not the communication is encrypted, default false>
|
||||
|
||||
#tracker_store:
|
||||
# type: mongod
|
||||
# url: <url to your mongo instance, e.g. mongodb://localhost:27017>
|
||||
# db: <name of the db within your mongo instance, e.g. rasa>
|
||||
# username: <username used for authentication>
|
||||
# password: <password used for authentication>
|
||||
|
||||
# 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
|
||||
Binary file not shown.
@@ -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
|
||||
Reference in new issue
Block a user