diff --git a/.rasa/cache/cache.db b/.rasa/cache/cache.db deleted file mode 100644 index 7f53cde..0000000 Binary files a/.rasa/cache/cache.db and /dev/null differ diff --git a/.rasa/cache/tmp06_xll1g/featurizer.json b/.rasa/cache/tmp06_xll1g/featurizer.json deleted file mode 100644 index 44f6957..0000000 --- a/.rasa/cache/tmp06_xll1g/featurizer.json +++ /dev/null @@ -1 +0,0 @@ -{"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/tmp06_xll1g/memorized_turns.json b/.rasa/cache/tmp06_xll1g/memorized_turns.json deleted file mode 100644 index 3b98b0b..0000000 --- a/.rasa/cache/tmp06_xll1g/memorized_turns.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "lookup": { - "eJyLrq6NBQAEOAGx": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohJzWxOLW2NhYA6ZsbeA==": "utter_lease", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohJzWxOLWWgBmlJSWpRfEQpbhMiAUAPa80cA==": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohv7QkPj8tvjg5vyC1tjYWALYRHnM=": "utter_default", - "eJyFjMEJwCAMAFfJAJ3AVUoJohEEm4gm/Yi7V2j//u7guHPMA0Zt9KAPmoUdjA+Q/U0Ofim5K/FqrVNbTeal6kBMURL2IJXmZmWq1DBS8lZ0t7pe19c7QQ==": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohOT+3ID8PyIx3qq2NBQCW6h3i": "utter_component_B", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohOT+3ID8PyIx3qiVgUmlJSWpRPLIG/KbFAgBBpzuu": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEqhuDSpODOlMt6xtjYWAFvNHRE=": "utter_subsidy_A", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEqhuDSpODOlMt6xloA5pSUlqUXxCOX4TIoFANwHOTs=": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSczPTMpJzXeubY2FgB3lR1N": "utter_eligible_C", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSczPTMpJzXeuZaAQaUlJalF8Ujq8ZoVCwB2Njnv": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohOT+3ID8PyIx3rK2NBQCW5h3h": "utter_component_A", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohOT+3ID8PyIx3rCVgUmlJSWpRPLIG/KbFAgBBMDur": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSczPTMpJzXeqbY2FgB3kR1M": "utter_eligible_B", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSczPTMpJzXeqZaAQaUlJalF8Ujq8ZoVCwB1wjns": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohLTMvMS85MzGntjYWAFr6HRM=": "utter_financial", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohLTMvMS85MzGnloA5pSUlqUXxCOX4TIoFANpYOUE=": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEqhODkjNTe1tjYWAAWTG+M=": "utter_scheme", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEqhODkjNTe1loAhpSUlqUXxULU4zYgFAOF7NbE=": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSc1uaQoMzmzpLK2NhYAlxweDw==": "utter_electricity", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSc1uaQoMzmzpLKWgEmlJSWpRfHIGvCbFgsAVQw8NQ==": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEqhuDSpODOlMt6ptjYWAFvRHRI=": "utter_subsidy_B", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEqhuDSpODOlMt6ploA5pSUlqUXxCOX4TIoFANx4OT4=": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohOT+3ID8PyIx3rq2NBQCW7h3j": "utter_component_C", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohOT+3ID8PyIx3riVgUmlJSWpRPLIG/KbFAgBCHjux": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSczPTMpJzXesbY2FgB3jR1L": "utter_eligible_A", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohNSczPTMpJzXesZaAQaUlJalF8Ujq8ZoVCwB1Tjnp": "action_listen", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohMy8tvyg3EaSmtjYWAJevHhQ=": "utter_information", - "eJyLrq7VUaguKEoti09MLsnMz7NSqIYw4vMSc1OtFKCcnMziktQ8oNrS4tQioJrMPCC3xEohMy8tvyg3EaSmloBJpSUlqUXxyBrwmxYLAFjcPEQ=": "action_listen" - } -} \ No newline at end of file diff --git a/.rasa/cache/tmp9hpa6u09/featurizer.json b/.rasa/cache/tmp9hpa6u09/featurizer.json deleted file mode 100644 index 44f6957..0000000 --- a/.rasa/cache/tmp9hpa6u09/featurizer.json +++ /dev/null @@ -1 +0,0 @@ -{"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/tmp9hpa6u09/rule_only_data.json b/.rasa/cache/tmp9hpa6u09/rule_only_data.json deleted file mode 100644 index c7335d7..0000000 --- a/.rasa/cache/tmp9hpa6u09/rule_only_data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "rule_only_slots": [], - "rule_only_loops": [] -} \ No newline at end of file diff --git a/.rasa/cache/tmp9hpa6u09/rule_policy.json b/.rasa/cache/tmp9hpa6u09/rule_policy.json deleted file mode 100644 index ad3ecf2..0000000 --- a/.rasa/cache/tmp9hpa6u09/rule_policy.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "lookup": { - "rules": { - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"greet\"}}]": "utter_greet", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"greet\"}}, {\"prev_action\": {\"action_name\": \"utter_greet\"}, \"user\": {\"intent\": \"greet\"}}]": "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", - "[{\"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\": \"thanking\"}}]": "utter_your_welcome", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"thanking\"}}, {\"prev_action\": {\"action_name\": \"utter_your_welcome\"}, \"user\": {\"intent\": \"thanking\"}}]": "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\": \"goodbye\"}}]", - "predicting default action with intent session_start", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"thanking\"}}]", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"thanking\"}}, {\"prev_action\": {\"action_name\": \"utter_your_welcome\"}, \"user\": {\"intent\": \"thanking\"}}]", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"bot_challenge\"}}]", - "predicting default action with intent back", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"greet\"}}]", - "[{\"prev_action\": {\"action_name\": \"action_listen\"}, \"user\": {\"intent\": \"bot_challenge\"}}, {\"prev_action\": {\"action_name\": \"utter_iamabot\"}, \"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\": \"greet\"}}, {\"prev_action\": {\"action_name\": \"utter_greet\"}, \"user\": {\"intent\": \"greet\"}}]", - "predicting default action with intent restart" - ] - } -} \ No newline at end of file diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.data_example.pkl b/.rasa/cache/tmp_6e361yd/DIETClassifier.data_example.pkl deleted file mode 100644 index 983dee6..0000000 Binary files a/.rasa/cache/tmp_6e361yd/DIETClassifier.data_example.pkl and /dev/null differ diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.entity_tag_specs.json b/.rasa/cache/tmp_6e361yd/DIETClassifier.entity_tag_specs.json deleted file mode 100644 index 0637a08..0000000 --- a/.rasa/cache/tmp_6e361yd/DIETClassifier.entity_tag_specs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.index_label_id_mapping.json b/.rasa/cache/tmp_6e361yd/DIETClassifier.index_label_id_mapping.json deleted file mode 100644 index e78d282..0000000 --- a/.rasa/cache/tmp_6e361yd/DIETClassifier.index_label_id_mapping.json +++ /dev/null @@ -1 +0,0 @@ -{"0": "bot_challenge", "1": "component_A", "2": "component_B", "3": "component_C", "4": "electricity", "5": "eligible_A", "6": "eligible_B", "7": "eligible_C", "8": "financial", "9": "goodbye", "10": "greet", "11": "information", "12": "lease", "13": "out_of_scope", "14": "scheme", "15": "start", "16": "subsidy_A", "17": "subsidy_B", "18": "thanking"} \ No newline at end of file diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.label_data.pkl b/.rasa/cache/tmp_6e361yd/DIETClassifier.label_data.pkl deleted file mode 100644 index cd7939e..0000000 Binary files a/.rasa/cache/tmp_6e361yd/DIETClassifier.label_data.pkl and /dev/null differ diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.sparse_feature_sizes.pkl b/.rasa/cache/tmp_6e361yd/DIETClassifier.sparse_feature_sizes.pkl deleted file mode 100644 index 5017110..0000000 Binary files a/.rasa/cache/tmp_6e361yd/DIETClassifier.sparse_feature_sizes.pkl and /dev/null differ diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.tf_model.index b/.rasa/cache/tmp_6e361yd/DIETClassifier.tf_model.index deleted file mode 100644 index b7dda98..0000000 Binary files a/.rasa/cache/tmp_6e361yd/DIETClassifier.tf_model.index and /dev/null differ diff --git a/.rasa/cache/tmp_6e361yd/checkpoint b/.rasa/cache/tmp_6e361yd/checkpoint deleted file mode 100644 index 57d6cf2..0000000 --- a/.rasa/cache/tmp_6e361yd/checkpoint +++ /dev/null @@ -1,2 +0,0 @@ -model_checkpoint_path: "DIETClassifier.tf_model" -all_model_checkpoint_paths: "DIETClassifier.tf_model" diff --git a/.rasa/cache/tmphq83y3bm/feature_to_idx_dict.pkl b/.rasa/cache/tmphq83y3bm/feature_to_idx_dict.pkl deleted file mode 100644 index 2f44c84..0000000 --- a/.rasa/cache/tmphq83y3bm/feature_to_idx_dict.pkl +++ /dev/null @@ -1 +0,0 @@ -{"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, "True": 11}, "json://{\"py/tuple\": [1, \"low\"]}": {"False": 12, "True": 13}, "json://{\"py/tuple\": [1, \"title\"]}": {"False": 14, "True": 15}, "json://{\"py/tuple\": [1, \"upper\"]}": {"False": 16, "True": 17}, "json://{\"py/tuple\": [2, \"low\"]}": {"False": 18, "True": 19}, "json://{\"py/tuple\": [2, \"title\"]}": {"False": 20, "True": 21}, "json://{\"py/tuple\": [2, \"upper\"]}": {"False": 22, "True": 23}} \ No newline at end of file diff --git a/.rasa/cache/tmpmyma98ym/patterns.pkl b/.rasa/cache/tmpmyma98ym/patterns.pkl deleted file mode 100644 index 0637a08..0000000 --- a/.rasa/cache/tmpmyma98ym/patterns.pkl +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/.rasa/cache/tmpnohn1gsb/checkpoint b/.rasa/cache/tmpnohn1gsb/checkpoint deleted file mode 100644 index 6258cbc..0000000 --- a/.rasa/cache/tmpnohn1gsb/checkpoint +++ /dev/null @@ -1,2 +0,0 @@ -model_checkpoint_path: "ted_policy.tf_model" -all_model_checkpoint_paths: "ted_policy.tf_model" diff --git a/.rasa/cache/tmpnohn1gsb/featurizer.json b/.rasa/cache/tmpnohn1gsb/featurizer.json deleted file mode 100644 index aa39ce5..0000000 --- a/.rasa/cache/tmpnohn1gsb/featurizer.json +++ /dev/null @@ -1 +0,0 @@ -{"py/object": "rasa.core.featurizers.tracker_featurizers.MaxHistoryTrackerFeaturizer", "state_featurizer": {"py/object": "rasa.core.featurizers.single_state_featurizer.SingleStateFeaturizer", "_default_feature_states": {"intent": {"back": 0, "bot_challenge": 1, "component_A": 2, "component_B": 3, "component_C": 4, "electricity": 5, "eligible_A": 6, "eligible_B": 7, "eligible_C": 8, "financial": 9, "goodbye": 10, "greet": 11, "information": 12, "lease": 13, "nlu_fallback": 14, "out_of_scope": 15, "restart": 16, "scheme": 17, "session_start": 18, "start": 19, "subsidy_A": 20, "subsidy_B": 21, "thanking": 22}, "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_component_A": 13, "utter_component_B": 14, "utter_component_C": 15, "utter_default": 16, "utter_electricity": 17, "utter_eligible_A": 18, "utter_eligible_B": 19, "utter_eligible_C": 20, "utter_email": 21, "utter_financial": 22, "utter_goodbye": 23, "utter_greet": 24, "utter_iamabot": 25, "utter_information": 26, "utter_lease": 27, "utter_name": 28, "utter_scheme": 29, "utter_subsidy_A": 30, "utter_subsidy_B": 31, "utter_your_welcome": 32}, "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/tmpnohn1gsb/ted_policy.data_example.pkl b/.rasa/cache/tmpnohn1gsb/ted_policy.data_example.pkl deleted file mode 100644 index fdc53f2..0000000 Binary files a/.rasa/cache/tmpnohn1gsb/ted_policy.data_example.pkl and /dev/null differ diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.entity_tag_specs.json b/.rasa/cache/tmpnohn1gsb/ted_policy.entity_tag_specs.json deleted file mode 100644 index 0637a08..0000000 --- a/.rasa/cache/tmpnohn1gsb/ted_policy.entity_tag_specs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.fake_features.pkl b/.rasa/cache/tmpnohn1gsb/ted_policy.fake_features.pkl deleted file mode 100644 index d01aaba..0000000 Binary files a/.rasa/cache/tmpnohn1gsb/ted_policy.fake_features.pkl and /dev/null differ diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.label_data.pkl b/.rasa/cache/tmpnohn1gsb/ted_policy.label_data.pkl deleted file mode 100644 index ceaeaab..0000000 Binary files a/.rasa/cache/tmpnohn1gsb/ted_policy.label_data.pkl and /dev/null differ diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.meta.pkl b/.rasa/cache/tmpnohn1gsb/ted_policy.meta.pkl deleted file mode 100644 index 86eda44..0000000 Binary files a/.rasa/cache/tmpnohn1gsb/ted_policy.meta.pkl and /dev/null differ diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.priority.pkl b/.rasa/cache/tmpnohn1gsb/ted_policy.priority.pkl deleted file mode 100644 index 56a6051..0000000 --- a/.rasa/cache/tmpnohn1gsb/ted_policy.priority.pkl +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.tf_model.data-00000-of-00001 b/.rasa/cache/tmpnohn1gsb/ted_policy.tf_model.data-00000-of-00001 deleted file mode 100644 index 9da9b24..0000000 Binary files a/.rasa/cache/tmpnohn1gsb/ted_policy.tf_model.data-00000-of-00001 and /dev/null differ diff --git a/.rasa/cache/tmpnohn1gsb/ted_policy.tf_model.index b/.rasa/cache/tmpnohn1gsb/ted_policy.tf_model.index deleted file mode 100644 index b87ec4c..0000000 Binary files a/.rasa/cache/tmpnohn1gsb/ted_policy.tf_model.index and /dev/null differ diff --git a/.rasa/cache/tmpsjt1zils/oov_words.json b/.rasa/cache/tmpsjt1zils/oov_words.json deleted file mode 100644 index 0637a08..0000000 --- a/.rasa/cache/tmpsjt1zils/oov_words.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/.rasa/cache/tmpsjt1zils/vocabularies.pkl b/.rasa/cache/tmpsjt1zils/vocabularies.pkl deleted file mode 100644 index ec2f63d..0000000 --- a/.rasa/cache/tmpsjt1zils/vocabularies.pkl +++ /dev/null @@ -1 +0,0 @@ -{"text": {"scheme": 78, "what": 103, "are": 7, "the": 95, "different": 27, "kind": 56, "of": 67, "systems": 90, "supported": 89, "under": 100, "pm": 71, "kusum": 57, "is": 55, "tell": 92, "me": 61, "about": 2, "give": 40, "some": 84, "information": 52, "highlights": 47, "component": 22, "a": 1, "can": 19, "i": 50, "get": 39, "informaton": 53, "comp": 21, "details": 25, "eligible": 30, "who": 105, "eligibility": 29, "apply": 6, "for": 36, "will": 107, "purchase": 75, "generated": 38, "electricity": 28, "buy": 15, "be": 11, "bought": 14, "by": 16, "whom": 106, "farmers": 33, "lease": 60, "their": 96, "land": 58, "development": 26, "renewable": 76, "energy": 31, "power": 72, "plant": 69, "financial": 34, "support": 88, "available": 9, "b": 10, "inform": 51, "there": 97, "any": 5, "subsidy": 87, "installation": 54, "solar": 82, "pump": 74, "c": 18, "criteria": 23, "solarisation": 83, "where": 104, "more": 62, "hey": 45, "hello": 44, "hi": 46, "good": 41, "morning": 63, "evening": 32, "afternoon": 3, "night": 66, "bye": 17, "goodbye": 42, "have": 43, "nice": 65, "day": 24, "see": 79, "you": 108, "around": 8, "later": 59, "bot": 13, "human": 48, "am": 4, "talking": 91, "to": 98, "want": 102, "order": 68, "food": 35, "__number__": 0, "s": 77, "us": 101, "president": 73, "book": 12, "car": 20, "play": 70, "something": 85, "show": 80, "games": 37, "hungry": 49, "thank": 93, "thanks": 94, "so": 81, "much": 64, "u": 99, "start": 86}, "intent": {"scheme": 14, "component_a": 1, "eligible_a": 5, "electricity": 4, "lease": 12, "financial": 8, "component_b": 2, "eligible_b": 6, "subsidy_a": 16, "component_c": 3, "eligible_c": 7, "subsidy_b": 17, "information": 11, "greet": 10, "goodbye": 9, "bot_challenge": 0, "out_of_scope": 13, "thanking": 18, "start": 15}, "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_component_a": 12, "utter_component_b": 13, "utter_component_c": 14, "utter_default": 15, "utter_electricity": 16, "utter_eligible_a": 17, "utter_eligible_b": 18, "utter_eligible_c": 19, "utter_financial": 20, "utter_goodbye": 21, "utter_greet": 22, "utter_iamabot": 23, "utter_information": 24, "utter_lease": 25, "utter_scheme": 26, "utter_subsidy_a": 27, "utter_subsidy_b": 28, "utter_your_welcome": 29}, "action_text": null, "intent_response_key": null} \ No newline at end of file diff --git a/.rasa/cache/tmpskbk_jcw/checkpoint b/.rasa/cache/tmpskbk_jcw/checkpoint deleted file mode 100644 index 3688510..0000000 --- a/.rasa/cache/tmpskbk_jcw/checkpoint +++ /dev/null @@ -1,2 +0,0 @@ -model_checkpoint_path: "unexpected_intent_policy.tf_model" -all_model_checkpoint_paths: "unexpected_intent_policy.tf_model" diff --git a/.rasa/cache/tmpskbk_jcw/featurizer.json b/.rasa/cache/tmpskbk_jcw/featurizer.json deleted file mode 100644 index 3ebdd98..0000000 --- a/.rasa/cache/tmpskbk_jcw/featurizer.json +++ /dev/null @@ -1 +0,0 @@ -{"py/object": "rasa.core.featurizers.tracker_featurizers.IntentMaxHistoryTrackerFeaturizer", "state_featurizer": {"py/object": "rasa.core.featurizers.single_state_featurizer.IntentTokenizerSingleStateFeaturizer", "_default_feature_states": {"intent": {"back": 0, "bot_challenge": 1, "component_A": 2, "component_B": 3, "component_C": 4, "electricity": 5, "eligible_A": 6, "eligible_B": 7, "eligible_C": 8, "financial": 9, "goodbye": 10, "greet": 11, "information": 12, "lease": 13, "nlu_fallback": 14, "out_of_scope": 15, "restart": 16, "scheme": 17, "session_start": 18, "start": 19, "subsidy_A": 20, "subsidy_B": 21, "thanking": 22}, "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_component_A": 13, "utter_component_B": 14, "utter_component_C": 15, "utter_default": 16, "utter_electricity": 17, "utter_eligible_A": 18, "utter_eligible_B": 19, "utter_eligible_C": 20, "utter_email": 21, "utter_financial": 22, "utter_goodbye": 23, "utter_greet": 24, "utter_iamabot": 25, "utter_information": 26, "utter_lease": 27, "utter_name": 28, "utter_scheme": 29, "utter_subsidy_A": 30, "utter_subsidy_B": 31, "utter_your_welcome": 32}, "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/tmpskbk_jcw/unexpected_intent_policy.data_example.pkl b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.data_example.pkl deleted file mode 100644 index 66b03b9..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.data_example.pkl and /dev/null differ diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.entity_tag_specs.json b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.entity_tag_specs.json deleted file mode 100644 index 0637a08..0000000 --- a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.entity_tag_specs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.fake_features.pkl b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.fake_features.pkl deleted file mode 100644 index 0f6b0f3..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.fake_features.pkl and /dev/null differ diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.label_data.pkl b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.label_data.pkl deleted file mode 100644 index 17c8355..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.label_data.pkl and /dev/null differ diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.label_quantiles.pkl b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.label_quantiles.pkl deleted file mode 100644 index dd14924..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.label_quantiles.pkl and /dev/null differ diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.meta.pkl b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.meta.pkl deleted file mode 100644 index 7fe2354..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.meta.pkl and /dev/null differ diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.priority.pkl b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.priority.pkl deleted file mode 100644 index d8263ee..0000000 --- a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.priority.pkl +++ /dev/null @@ -1 +0,0 @@ -2 \ No newline at end of file diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.tf_model.data-00000-of-00001 b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.tf_model.data-00000-of-00001 deleted file mode 100644 index 7fd0d4c..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.tf_model.data-00000-of-00001 and /dev/null differ diff --git a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.tf_model.index b/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.tf_model.index deleted file mode 100644 index e4c15d9..0000000 Binary files a/.rasa/cache/tmpskbk_jcw/unexpected_intent_policy.tf_model.index and /dev/null differ diff --git a/.rasa/cache/tmpuxe36s89/oov_words.json b/.rasa/cache/tmpuxe36s89/oov_words.json deleted file mode 100644 index 0637a08..0000000 --- a/.rasa/cache/tmpuxe36s89/oov_words.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/.rasa/cache/tmpuxe36s89/vocabularies.pkl b/.rasa/cache/tmpuxe36s89/vocabularies.pkl deleted file mode 100644 index e969ba2..0000000 --- a/.rasa/cache/tmpuxe36s89/vocabularies.pkl +++ /dev/null @@ -1 +0,0 @@ -{"text": {" ": 0, "s": 900, "c": 306, "h": 485, "e": 357, "m": 655, " s": 139, "sc": 905, "ch": 315, "he": 496, "em": 382, "me": 669, "e ": 358, " sc": 141, "sch": 906, "che": 319, "hem": 502, "eme": 383, "me ": 670, " sch": 142, "sche": 907, "chem": 320, "heme": 503, "eme ": 384, "w": 1041, "a": 205, "t": 941, " w": 174, "wh": 1051, "ha": 487, "at": 260, "t ": 942, " wh": 177, "wha": 1052, "hat": 492, "at ": 261, " wha": 178, "what": 1053, "hat ": 493, "r": 845, " a": 4, "ar": 245, "re": 859, " ar": 16, "are": 247, "re ": 860, " are": 17, "are ": 248, " t": 158, "th": 969, " th": 163, "the": 972, "he ": 497, " the": 165, "the ": 973, "d": 335, "i": 532, "f": 432, "n": 692, " d": 43, "di": 352, "if": 553, "ff": 440, "fe": 437, "er": 396, "en": 387, "nt": 736, " di": 49, "dif": 353, "iff": 554, "ffe": 441, "fer": 438, "ere": 402, "ren": 861, "ent": 393, "nt ": 737, " dif": 50, "diff": 354, "iffe": 555, "ffer": 442, "fere": 439, "eren": 404, "rent": 863, "ent ": 394, "k": 599, " k": 96, "ki": 601, "in": 571, "nd": 700, "d ": 336, " ki": 97, "kin": 602, "ind": 574, "nd ": 701, " kin": 98, "kind": 603, "ind ": 575, "o": 747, " o": 118, "of": 753, "f ": 433, " of": 119, "of ": 754, " of ": 120, "y": 1062, "sy": 938, "ys": 1069, "st": 925, "te": 958, "ms": 687, "s ": 901, " sy": 156, "sys": 939, "yst": 1070, "ste": 929, "tem": 963, "ems": 385, "ms ": 688, " sys": 157, "syst": 940, "yste": 1071, "stem": 930, "tems": 964, "ems ": 386, "u": 992, "p": 811, "su": 931, "up": 1017, "pp": 832, "po": 825, "or": 783, "rt": 894, "ed": 365, " su": 153, "sup": 936, "upp": 1018, "ppo": 835, "por": 828, "ort": 794, "rte": 896, "ted": 959, "ed ": 366, " sup": 155, "supp": 937, "uppo": 1019, "ppor": 836, "port": 829, "orte": 796, "rted": 897, "ted ": 960, " u": 168, "un": 1011, "de": 343, "r ": 846, " un": 170, "und": 1012, "nde": 702, "der": 346, "er ": 397, " und": 171, "unde": 1014, "nder": 703, "der ": 347, "-": 186, " p": 123, "pm": 819, "m-": 657, "-k": 193, "ku": 607, "us": 1023, "um": 1003, "m ": 656, " pm": 126, "pm-": 821, "m-k": 658, "-ku": 194, "kus": 608, "usu": 1025, "sum": 934, "um ": 1004, " pm-": 128, "pm-k": 822, "m-ku": 659, "-kus": 195, "kusu": 609, "usum": 1026, "sum ": 935, " i": 89, "is": 587, " is": 94, "is ": 588, " is ": 95, "l": 610, "el": 372, "ll": 641, "l ": 611, " te": 161, "tel": 961, "ell": 377, "ll ": 642, " tel": 162, "tell": 962, "ell ": 378, " m": 107, " me": 108, " me ": 109, "b": 276, "ab": 207, "bo": 288, "ou": 799, "ut": 1027, " ab": 6, "abo": 210, "bou": 293, "out": 805, "ut ": 1028, " abo": 7, "abou": 211, "bout": 295, "out ": 806, "g": 455, "v": 1031, " g": 67, "gi": 471, "iv": 596, "ve": 1035, " gi": 73, "giv": 475, "ive": 597, "ve ": 1036, " giv": 74, "give": 476, "ive ": 598, "so": 919, "om": 760, " so": 147, "som": 923, "ome": 762, " som": 150, "some": 924, "ome ": 763, "nf": 712, "fo": 446, "rm": 878, "ma": 660, "ti": 978, "io": 582, "on": 768, "n ": 693, " in": 91, "inf": 576, "nfo": 713, "for": 449, "orm": 789, "rma": 880, "mat": 663, "ati": 265, "tio": 979, "ion": 583, "on ": 769, " inf": 92, "info": 577, "nfor": 714, "form": 451, "orma": 791, "rmat": 881, "mati": 664, "atio": 266, "tion": 980, "ion ": 584, " h": 77, "hi": 508, "ig": 556, "gh": 465, "hl": 514, "li": 632, "ht": 523, "ts": 988, " hi": 83, "hig": 510, "igh": 557, "ghl": 466, "hli": 515, "lig": 633, "ght": 468, "hts": 525, "ts ": 989, " hig": 85, "high": 511, "ighl": 558, "ghli": 467, "hlig": 516, "ligh": 634, "ight": 559, "ghts": 470, "hts ": 526, "pm ": 820, " pm ": 127, " ku": 99, " kus": 100, " c": 34, "co": 326, "mp": 683, "ne": 704, "t-": 943, "-a": 187, "a ": 206, " co": 39, "com": 327, "omp": 765, "mpo": 685, "pon": 826, "one": 770, "nen": 705, "nt-": 738, "t-a": 944, "-a ": 188, " com": 40, "comp": 328, "ompo": 767, "mpon": 686, "pone": 827, "onen": 771, "nent": 706, "ent-": 395, "nt-a": 739, "t-a ": 945, "ca": 308, "an": 229, " ca": 36, "can": 309, "an ": 230, " can": 37, "can ": 310, "i ": 533, " i ": 90, "ge": 460, "et": 417, " ge": 70, "get": 463, "et ": 418, " get": 72, "get ": 464, " a ": 5, "to": 981, "ato": 267, "ton": 983, "mato": 665, "aton": 268, "ton ": 984, "p ": 812, "mp ": 684, "omp ": 766, "ta": 950, "ai": 215, "il": 562, "ls": 651, " de": 46, "det": 348, "eta": 419, "tai": 951, "ail": 216, "ils": 569, "ls ": 652, " det": 47, "deta": 349, "etai": 420, "tail": 952, "ails": 218, "ils ": 570, " e": 51, "ib": 538, "bl": 285, "le": 626, " el": 52, "eli": 375, "igi": 560, "gib": 472, "ibl": 541, "ble": 286, "le ": 627, " eli": 54, "elig": 376, "ligi": 635, "igib": 561, "gibl": 474, "ible": 542, "ble ": 287, "ho": 517, "o ": 748, "who": 1056, "ho ": 518, " who": 180, "who ": 1057, "bi": 282, "it": 591, "ty": 990, "y ": 1063, "ibi": 539, "bil": 283, "ili": 565, "lit": 636, "ity": 594, "ty ": 991, "gibi": 473, "ibil": 540, "bili": 284, "ilit": 566, "lity": 637, "ity ": 595, "ap": 242, "pl": 813, "ly": 653, " ap": 14, "app": 243, "ppl": 833, "ply": 817, "ly ": 654, " app": 15, "appl": 244, "pply": 834, "ply ": 818, " f": 59, " fo": 64, "or ": 784, " for": 66, "for ": 450, "wi": 1059, " wi": 181, "wil": 1060, "ill": 567, " wil": 182, "will": 1061, "ill ": 568, "pu": 840, "ur": 1020, "rc": 853, "as": 257, "se": 908, " pu": 133, "pur": 843, "urc": 1021, "rch": 854, "cha": 317, "has": 490, "ase": 258, "se ": 909, " pur": 135, "purc": 844, "urch": 1022, "rcha": 855, "chas": 318, "hase": 491, "ase ": 259, "ra": 850, "gen": 461, "ene": 388, "ner": 707, "era": 400, "rat": 851, "ate": 262, " gen": 71, "gene": 462, "ener": 389, "nera": 708, "erat": 401, "rate": 852, "ated": 263, "ec": 362, "ct": 332, "tr": 985, "ri": 869, "ic": 543, "ci": 321, "ele": 373, "lec": 630, "ect": 363, "ctr": 333, "tri": 986, "ric": 872, "ici": 546, "cit": 324, " ele": 53, "elec": 374, "lect": 631, "ectr": 364, "ctri": 334, "tric": 987, "rici": 873, "icit": 547, "city": 325, " b": 21, "bu": 299, "uy": 1029, " bu": 29, "buy": 300, "uy ": 1030, " buy": 30, "buy ": 301, "be": 278, " be": 23, "be ": 279, " be ": 24, "ug": 1000, " bo": 25, "oug": 801, "ugh": 1001, "ht ": 524, " bou": 28, "boug": 294, "ough": 802, "ught": 1002, "ght ": 469, "by": 302, " by": 31, "by ": 303, " by ": 32, "hom": 519, "om ": 761, "whom": 1058, "hom ": 520, "fa": 434, "rs": 892, " fa": 60, "far": 435, "arm": 251, "rme": 882, "mer": 673, "ers": 411, "rs ": 893, " far": 61, "farm": 436, "arme": 252, "rmer": 883, "mers": 674, "ers ": 412, " l": 101, "ea": 359, " le": 105, "lea": 628, "eas": 360, " lea": 106, "leas": 629, "ease": 361, "ei": 369, "ir": 585, "hei": 498, "eir": 370, "ir ": 586, "thei": 974, "heir": 499, "eir ": 371, "la": 612, " la": 102, "lan": 615, "and": 233, " lan": 103, "land": 616, "and ": 234, "ev": 423, "lo": 647, "op": 780, "dev": 350, "eve": 424, "vel": 1037, "elo": 380, "lop": 649, "opm": 781, "pme": 823, "men": 671, " dev": 48, "deve": 351, "evel": 425, "velo": 1038, "elop": 381, "lopm": 650, "opme": 782, "pmen": 824, "ment": 672, " r": 136, "ew": 427, "wa": 1043, " re": 137, "new": 710, "ewa": 428, "wab": 1044, "abl": 208, " ren": 138, "rene": 862, "enew": 390, "newa": 711, "ewab": 429, "wabl": 1045, "able": 209, "rg": 866, "gy": 483, " en": 55, "erg": 405, "rgy": 867, "gy ": 484, " ene": 56, "nerg": 709, "ergy": 406, "rgy ": 868, "ow": 807, "we": 1048, " po": 129, "pow": 830, "owe": 809, "wer": 1049, " pow": 130, "powe": 831, "ower": 810, "wer ": 1050, " pl": 124, "pla": 814, "ant": 238, " pla": 125, "plan": 815, "lant": 617, "ant ": 239, "fi": 443, "na": 694, "nc": 697, "ia": 534, "al": 219, " fi": 62, "fin": 444, "ina": 572, "nan": 695, "anc": 231, "nci": 698, "cia": 322, "ial": 536, "al ": 220, " fin": 63, "fina": 445, "inan": 573, "nanc": 696, "anci": 232, "ncia": 699, "cial": 323, "ial ": 537, "rt ": 895, "ort ": 795, "av": 269, "va": 1032, " av": 19, "ava": 270, "vai": 1033, "ila": 563, "lab": 613, " ava": 20, "avai": 271, "vail": 1034, "aila": 217, "ilab": 564, "labl": 614, "-b": 189, "b ": 277, "t-b": 946, "-b ": 190, "nt-b": 740, "t-b ": 947, "rm ": 879, "orm ": 790, " b ": 22, "her": 504, "ther": 975, "here": 505, "ere ": 403, "ny": 745, " an": 12, "any": 240, "ny ": 746, " any": 13, "any ": 241, "ub": 994, "bs": 296, "si": 915, "id": 548, "dy": 355, "sub": 932, "ubs": 995, "bsi": 297, "sid": 916, "idy": 551, "dy ": 356, " sub": 154, "subs": 933, "ubsi": 996, "bsid": 298, "sidy": 918, "idy ": 552, "ns": 733, "ins": 580, "nst": 734, "sta": 926, "tal": 953, "all": 223, "lla": 643, "lat": 621, " ins": 93, "inst": 581, "nsta": 735, "stal": 927, "tall": 955, "alla": 224, "llat": 644, "lati": 623, "ol": 757, "sol": 921, "ola": 758, "lar": 618, "ar ": 246, " sol": 149, "sola": 922, "olar": 759, "lar ": 619, "pum": 841, "ump": 1009, " pum": 134, "pump": 842, "ump ": 1010, "-c": 191, "c ": 307, "t-c": 948, "-c ": 192, "nt-c": 741, "t-c ": 949, " c ": 35, "cr": 329, " cr": 41, "cri": 330, "rit": 876, "ite": 592, "ter": 965, "eri": 407, "ria": 870, "ia ": 535, " cri": 42, "crit": 331, "rite": 877, "iter": 593, "teri": 967, "eria": 408, "ria ": 871, "sa": 902, "ari": 249, "ris": 874, "isa": 589, "sat": 903, "lari": 620, "aris": 250, "risa": 875, "isat": 590, "sati": 904, "whe": 1054, " whe": 179, "wher": 1055, "mo": 679, " mo": 110, "mor": 680, "ore": 787, " mor": 111, "more": 681, "ore ": 788, "ey": 430, " he": 80, "hey": 506, "ey ": 431, " hey": 82, "hey ": 507, "hel": 500, "llo": 645, "lo ": 648, " hel": 81, "hell": 501, "ello": 379, "llo ": 646, "hi ": 509, " hi ": 84, "go": 477, "oo": 772, "od": 749, " go": 75, "goo": 478, "ood": 773, "od ": 750, " goo": 76, "good": 479, "ood ": 774, "rn": 884, "ni": 719, "ng": 715, "g ": 456, "orn": 792, "rni": 885, "nin": 724, "ing": 578, "ng ": 716, "morn": 682, "orni": 793, "rnin": 886, "ning": 725, "ing ": 579, " ev": 57, "ven": 1039, "eni": 391, " eve": 58, "even": 426, "veni": 1040, "enin": 392, "af": 212, "ft": 452, "no": 730, " af": 8, "aft": 213, "fte": 453, "ern": 409, "rno": 887, "noo": 731, "oon": 778, " aft": 9, "afte": 214, "fter": 454, "tern": 968, "erno": 410, "rnoo": 888, "noon": 732, "oon ": 779, " n": 114, " ni": 115, "nig": 722, " nig": 117, "nigh": 723, "ye": 1064, "bye": 304, "ye ": 1065, " bye": 33, "bye ": 305, "db": 340, "odb": 751, "dby": 341, "oodb": 775, "odby": 752, "dbye": 342, " ha": 78, "hav": 494, "ave": 272, " hav": 79, "have": 495, "ave ": 273, "ce": 313, "nic": 720, "ice": 544, "ce ": 314, " nic": 116, "nice": 721, "ice ": 545, "da": 337, "ay": 274, " da": 44, "day": 338, "ay ": 275, " day": 45, "day ": 339, "ee": 367, " se": 143, "see": 910, "ee ": 368, " see": 144, "see ": 911, " y": 183, "yo": 1066, "u ": 993, " yo": 184, "you": 1067, "ou ": 800, " you": 185, "you ": 1068, "ro": 889, "aro": 253, "rou": 890, "oun": 803, " aro": 18, "arou": 254, "roun": 891, "ound": 804, "und ": 1013, " lat": 104, "late": 622, "ater": 264, "ter ": 966, "ot": 797, "bot": 291, "ot ": 798, " bot": 27, "bot ": 292, "hu": 527, " hu": 86, "hum": 528, "uma": 1005, "man": 661, " hum": 87, "huma": 529, "uman": 1006, "man ": 662, "am": 225, " am": 10, "am ": 226, " am ": 11, "lk": 638, " ta": 159, "alk": 221, "lki": 639, " tal": 160, "talk": 954, "alki": 222, "lkin": 640, "king": 604, " to": 166, "to ": 982, " to ": 167, " wa": 175, "wan": 1046, " wan": 176, "want": 1047, "rd": 856, " or": 121, "ord": 785, "rde": 857, " ord": 122, "orde": 786, "rder": 858, "foo": 447, " foo": 65, "food": 448, "_": 196, " _": 1, "__": 198, "_n": 202, "nu": 742, "mb": 666, "r_": 847, "_ ": 197, " __": 2, "__n": 200, "_nu": 203, "num": 743, "umb": 1007, "mbe": 667, "ber": 280, "er_": 398, "r__": 848, "__ ": 199, " __n": 3, "__nu": 201, "_num": 204, "numb": 744, "umbe": 1008, "mber": 668, "ber_": 281, "er__": 399, "r__ ": 849, " s ": 140, " us": 172, "us ": 1024, " us ": 173, "pr": 837, "es": 413, " pr": 131, "pre": 838, "res": 864, "esi": 415, "ide": 549, "den": 344, " pre": 132, "pres": 839, "resi": 865, "esid": 416, "side": 917, "iden": 550, "dent": 345, "ok": 755, "k ": 600, "boo": 289, "ook": 776, "ok ": 756, " boo": 26, "book": 290, "ook ": 777, "car": 311, " car": 38, "car ": 312, "lay": 624, "play": 816, "lay ": 625, "met": 677, "eth": 421, "thi": 976, "hin": 512, "omet": 764, "meth": 678, "ethi": 422, "thin": 977, "hing": 513, "sh": 912, "w ": 1042, " sh": 145, "sho": 913, "how": 521, "ow ": 808, " sho": 146, "show": 914, "how ": 522, "ga": 457, " ga": 68, "gam": 458, "ame": 227, "mes": 675, "es ": 414, " gam": 69, "game": 459, "ames": 228, "mes ": 676, "gr": 480, "ry": 898, "hun": 530, "ung": 1015, "ngr": 717, "gry": 481, "ry ": 899, " hun": 88, "hung": 531, "ungr": 1016, "ngry": 718, "gry ": 482, "nk": 726, "tha": 970, "han": 488, "ank": 235, "nk ": 727, " tha": 164, "than": 971, "hank": 489, "ank ": 236, "ks": 605, "nks": 728, "ks ": 606, "anks": 237, "nks ": 729, "so ": 920, " so ": 148, "mu": 689, "uc": 997, "h ": 486, " mu": 112, "muc": 690, "uch": 998, "ch ": 316, " muc": 113, "much": 691, "uch ": 999, " u ": 169, " st": 151, "tar": 956, "art": 255, " sta": 152, "star": 928, "tart": 957, "art ": 256}, "response": null, "action_text": null} \ No newline at end of file diff --git a/__pycache__/connect_to_database.cpython-38.pyc b/__pycache__/connect_to_database.cpython-38.pyc new file mode 100644 index 0000000..8655551 Binary files /dev/null and b/__pycache__/connect_to_database.cpython-38.pyc differ diff --git a/actions/__pycache__/actions.cpython-38.pyc b/actions/__pycache__/actions.cpython-38.pyc index 90681ee..b4dd331 100644 Binary files a/actions/__pycache__/actions.cpython-38.pyc and b/actions/__pycache__/actions.cpython-38.pyc differ diff --git a/actions/actions.py b/actions/actions.py index b5bae75..7936a83 100644 --- a/actions/actions.py +++ b/actions/actions.py @@ -11,7 +11,7 @@ from typing import Any, Text, Dict, List from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher -from database_connectivity import DataUpdate +from connect_to_database import UpdateData import datetime # # @@ -28,22 +28,30 @@ import datetime # # return [] -# class ActionHelloWorld(Action): +#FOR GETTING THE USER'S BROWSER AND DEVICE INFORMATION THROUGH CUSTOM DATA. +# class ActionGetData(Action): # def name(self) -> Text: -# return "action_hello_world" +# return "action_get_data" # def run(self, dispatcher: CollectingDispatcher, # tracker: Tracker, # domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: -# dispatcher.utter_message(text="Hello World!") +# events = tracker.current_state()['events'] +# user_events = [] +# for e in events: +# if e['event'] == 'user': +# user_events.append(e) -# return [] +# custom_data = user_events[-1]['metadata'] +# print(custom_data) + +# return [] -#FOR DATABASE CONNECTIVITY AND UPDATION. +#FOR DATABASE CONNECTIVITY AND UPDATION (NAME, EMAIL, DATE, SESSION ID). # class ActionSubmit(Action): # def name(self) -> Text: # return "action_submit" @@ -55,4 +63,26 @@ import datetime # current_time = str(datetime.datetime.now()) # current_time = current_time.split(":") # current_time = current_time[0] + ":" + current_time[1] -# DataUpdate(tracker.get_slot("name"),tracker.get_slot("email"), current_time, tracker.sender_id) \ No newline at end of file +# DataUpdate(tracker.get_slot("name"),tracker.get_slot("email"), current_time, tracker.sender_id) + + +#GET THE USER'S BROWSER AND DEVICE INFORMATION THROUGH INIT PAYLOAD AND UPDATE THE TABLE USER_DEVICE_IMFORMATION. +class ActionUpdateData(Action): + def name(self) -> Text: + return "action_update_data" + + def run(self, dispatcher: CollectingDispatcher, + tracker: Tracker, + domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: + + device = tracker.get_slot("device_and_browser").split(",")[0].capitalize() + browser = tracker.get_slot("device_and_browser").split(",")[1].capitalize() + + current_time = str(datetime.datetime.now()) + current_time = current_time.split(":") + current_time = current_time[0] + ":" + current_time[1] + current_time = datetime.datetime.strptime(current_time, "%Y-%m-%d %H:%M") + + UpdateData(device, browser, current_time, tracker.sender_id) + + \ No newline at end of file diff --git a/assets/bot widget.jpg b/assets/bot widget.jpg deleted file mode 100644 index 13172e9..0000000 Binary files a/assets/bot widget.jpg and /dev/null differ diff --git a/assets/bot_widget-removebg-preview.png b/assets/bot_widget-removebg-preview.png deleted file mode 100644 index 30e2797..0000000 Binary files a/assets/bot_widget-removebg-preview.png and /dev/null differ diff --git a/assets/demo.html b/assets/demo.html deleted file mode 100644 index e69de29..0000000 diff --git a/assets/robo_small.gif b/assets/robo_small.gif deleted file mode 100644 index 5cba510..0000000 Binary files a/assets/robo_small.gif and /dev/null differ diff --git a/database_connectivity.py b/connect_to_database.py similarity index 56% rename from database_connectivity.py rename to connect_to_database.py index 2f4b06d..c6373dc 100644 --- a/database_connectivity.py +++ b/connect_to_database.py @@ -1,6 +1,6 @@ import mysql.connector -def DataUpdate(name, email, date, session_id): +def UpdateData(device, browser, date, session_id): mydb = mysql.connector.connect( host = "localhost", user = "root", @@ -11,13 +11,10 @@ def DataUpdate(name, email, date, session_id): mycursor = mydb.cursor() #sql = "CREATE TABLE user_information (Name VARCHAR(255), Email VARCHAR(255), Date VARCHAR(255), Session ID VARCHAR(255));" - sql = 'INSERT INTO user_data (Name, Email, Date, Session_ID) VALUES ("{}", "{}", "{}", "{}");'.format(name, email, date, session_id) + sql = 'INSERT INTO user_device_information VALUES ("{}", "{}", "{}", "{}");'.format(device, browser, date, session_id) mycursor.execute(sql) mydb.commit() - print("Successful!") - -#if __name__ == "__main__": - #DataUpdate("siddharth", "siddharth@gmail.com") + print("Successful!") \ No newline at end of file diff --git a/credentials.yml b/credentials.yml index 316d90d..16f55ff 100644 --- a/credentials.yml +++ b/credentials.yml @@ -22,6 +22,11 @@ socketio: bot_message_evt: bot_uttered session_persistence: true +# socketChannel.SocketIOInput: +# user_message_evt: user_uttered +# bot_message_evt: bot_uttered +# session_persistence: true + #mattermost: # url: "https:///api/v4" # token: "" diff --git a/data/rules.yml b/data/rules.yml index c8f22a5..9d170f9 100644 --- a/data/rules.yml +++ b/data/rules.yml @@ -6,6 +6,7 @@ rules: steps: - intent: greet - action: utter_greet + - action: action_update_data - rule: Say goodbye anytime the user says goodbye steps: diff --git a/domain.yml b/domain.yml index 75a29a2..85cb2ad 100644 --- a/domain.yml +++ b/domain.yml @@ -35,6 +35,16 @@ intents: # - type: from_text # intent: email +entities: + - device_and_browser + +slots: + device_and_browser: + type: text + mappings: + - type: from_entity + entity: device_and_browser + responses: utter_eligible_A: - text: "Individual farmers/group of farmers/cooperatives/panchayats/Farmer Producer Organisations (FPO)/Water User associations (WUA). Land on which the project is proposed to be installed should be within 5 km from the nearest electricity sub-station." @@ -194,8 +204,8 @@ responses: utter_email: - text: "Enter your email ID: " -# actions: -# - action_submit +actions: + - action_update_data session_config: session_expiration_time: 60 diff --git a/index.html b/index.html deleted file mode 100644 index 4b02a85..0000000 --- a/index.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/models/20220914-135739-narrow-chili.tar.gz b/models/20220914-135739-narrow-chili.tar.gz new file mode 100644 index 0000000..a5c6a75 Binary files /dev/null and b/models/20220914-135739-narrow-chili.tar.gz differ diff --git a/.rasa/cache/tmp_6e361yd/DIETClassifier.tf_model.data-00000-of-00001 b/models/20220916-112756-perpendicular-vector.tar.gz similarity index 62% rename from .rasa/cache/tmp_6e361yd/DIETClassifier.tf_model.data-00000-of-00001 rename to models/20220916-112756-perpendicular-vector.tar.gz index b52f51a..7ab4c33 100644 Binary files a/.rasa/cache/tmp_6e361yd/DIETClassifier.tf_model.data-00000-of-00001 and b/models/20220916-112756-perpendicular-vector.tar.gz differ diff --git a/models/20221003-133952-tractable-controller.tar.gz b/models/20221003-133952-tractable-controller.tar.gz new file mode 100644 index 0000000..9909457 Binary files /dev/null and b/models/20221003-133952-tractable-controller.tar.gz differ diff --git a/socketChannel.py b/socketChannel.py new file mode 100644 index 0000000..2468c59 --- /dev/null +++ b/socketChannel.py @@ -0,0 +1,197 @@ +from importlib.metadata import metadata +import logging +import warnings +import uuid +from sanic import Blueprint, response +from sanic.request import Request +from sanic.response import HTTPResponse +from socketio import AsyncServer +from typing import Optional, Text, Any, List, Dict, Iterable, Callable, Awaitable + +from rasa.core.channels.channel import InputChannel +from rasa.core.channels.channel import UserMessage, OutputChannel + +logger = logging.getLogger(__name__) + + +class SocketBlueprint(Blueprint): + def __init__(self, sio: AsyncServer, socketio_path, *args, **kwargs): + self.sio = sio + self.socketio_path = socketio_path + super().__init__(*args, **kwargs) + + def register(self, app, options): + self.sio.attach(app, self.socketio_path) + super().register(app, options) + + +class SocketIOOutput(OutputChannel): + @classmethod + def name(cls): + return "socketio" + + def __init__(self, sio, sid, bot_message_evt): + self.sio = sio + self.sid = sid + self.bot_message_evt = bot_message_evt + + async def _send_message(self, socket_id: Text, response: Any) -> None: + """Sends a message to the recipient using the bot event.""" + + await self.sio.emit(self.bot_message_evt, response, room=socket_id) + + async def send_text_message( + self, recipient_id: Text, text: Text, **kwargs: Any + ) -> None: + """Send a message through this channel.""" + + await self._send_message(self.sid, {"text": text}) + + async def send_image_url( + self, recipient_id: Text, image: Text, **kwargs: Any + ) -> None: + """Sends an image to the output""" + + message = {"attachment": {"type": "image", "payload": {"src": image}}} + await self._send_message(self.sid, message) + + async def send_text_with_buttons( + self, + recipient_id: Text, + text: Text, + buttons: List[Dict[Text, Any]], + **kwargs: Any, + ) -> None: + """Sends buttons to the output.""" + + message = {"text": text, "quick_replies": []} + + for button in buttons: + message["quick_replies"].append( + { + "content_type": "text", + "title": button["title"], + "payload": button["payload"], + } + ) + + await self._send_message(self.sid, message) + + async def send_elements( + self, recipient_id: Text, elements: Iterable[Dict[Text, Any]], **kwargs: Any + ) -> None: + """Sends elements to the output.""" + + for element in elements: + message = { + "attachment": { + "type": "template", + "payload": {"template_type": "generic", "elements": element}, + } + } + + await self._send_message(self.sid, message) + + async def send_custom_json( + self, recipient_id: Text, json_message: Dict[Text, Any], **kwargs: Any + ) -> None: + """Sends custom json to the output""" + + json_message.setdefault("room", self.sid) + + await self.sio.emit(self.bot_message_evt, **json_message) + + async def send_attachment( + self, recipient_id: Text, attachment: Dict[Text, Any], **kwargs: Any + ) -> None: + """Sends an attachment to the user.""" + await self._send_message(self.sid, {"attachment": attachment}) + + +class SocketIOInput(InputChannel): + """A socket.io input channel.""" + + @classmethod + def name(cls) -> Text: + return "socketio" + + @classmethod + def from_credentials(cls, credentials: Optional[Dict[Text, Any]]) -> InputChannel: + credentials = credentials or {} + return cls( + credentials.get("user_message_evt", "user_uttered"), + credentials.get("bot_message_evt", "bot_uttered"), + credentials.get("namespace"), + credentials.get("session_persistence", False), + credentials.get("socketio_path", "/socket.io"), + ) + + def __init__( + self, + user_message_evt: Text = "user_uttered", + bot_message_evt: Text = "bot_uttered", + namespace: Optional[Text] = None, + session_persistence: bool = False, + socketio_path: Optional[Text] = "/socket.io", + ): + self.bot_message_evt = bot_message_evt + self.session_persistence = session_persistence + self.user_message_evt = user_message_evt + self.namespace = namespace + self.socketio_path = socketio_path + + def blueprint( + self, on_new_message: Callable[[UserMessage], Awaitable[Any]] + ) -> Blueprint: + # Workaround so that socketio works with requests from other origins. + sio = AsyncServer(async_mode="sanic", cors_allowed_origins=[]) + socketio_webhook = SocketBlueprint( + sio, self.socketio_path, "socketio_webhook", __name__ + ) + + @socketio_webhook.route("/", methods=["GET"]) + async def health(_: Request) -> HTTPResponse: + return response.json({"status": "ok"}) + + @sio.on("connect", namespace=self.namespace) + async def connect(sid: Text, _) -> None: + logger.debug(f"User {sid} connected to socketIO endpoint.") + + @sio.on("disconnect", namespace=self.namespace) + async def disconnect(sid: Text) -> None: + logger.debug(f"User {sid} disconnected from socketIO endpoint.") + + @sio.on("session_request", namespace=self.namespace) + async def session_request(sid: Text, data: Optional[Dict]): + if data is None: + data = {} + if "session_id" not in data or data["session_id"] is None: + data["session_id"] = uuid.uuid4().hex + await sio.emit("session_confirm", data["session_id"], room=sid) + logger.debug(f"User {sid} connected to socketIO endpoint.") + + @sio.on(self.user_message_evt, namespace=self.namespace) + async def handle_message(sid: Text, data: Dict) -> Any: + output_channel = SocketIOOutput(sio, sid, self.bot_message_evt) + + if self.session_persistence: + if not data.get("session_id"): + warnings.warn( + "A message without a valid sender_id " + "was received. This message will be " + "ignored. Make sure to set a proper " + "session id using the " + "`session_request` socketIO event." + ) + return + sender_id = data["session_id"] + else: + sender_id = sid + + message = UserMessage( + data["message"], output_channel, sender_id, input_channel=self.name(), + metadata = data['customData'] + ) + await on_new_message(message) + + return socketio_webhook diff --git a/testing.py b/testing.py deleted file mode 100644 index 3321c1d..0000000 --- a/testing.py +++ /dev/null @@ -1,10 +0,0 @@ -# name = 'Siddharth' -# email = 'siddharthsrivastava77@gmail.com' - -# print('INSERT INTO users (name, email) VALUES ("{}", "{}");'.format(name, email)) -import datetime - -# using now() to get current time -current_time = str(datetime.datetime.now()) -current_time = current_time.split(":") -print(current_time[0] + ":" + current_time[1]) \ No newline at end of file