diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/__pycache__/actions.cpython-35.pyc b/Full Code [Latest release of Rasa NLU and Rasa Core]/__pycache__/actions.cpython-35.pyc new file mode 100644 index 0000000..805ced3 Binary files /dev/null and b/Full Code [Latest release of Rasa NLU and Rasa Core]/__pycache__/actions.cpython-35.pyc differ diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/featurizer.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/featurizer.json index 9b5b698..ad5ba9c 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/featurizer.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/featurizer.json @@ -1 +1 @@ -{"py/object": "rasa_core.featurizers.MaxHistoryTrackerFeaturizer", "max_history": 5, "remove_duplicates": true, "state_featurizer": {"py/object": "rasa_core.featurizers.SingleStateFeaturizer", "slot_feature_len": null, "user_feature_len": null}, "use_intent_probabilities": false} \ No newline at end of file +{"use_intent_probabilities": false, "remove_duplicates": true, "state_featurizer": {"slot_feature_len": null, "user_feature_len": null, "py/object": "rasa_core.featurizers.SingleStateFeaturizer"}, "max_history": 2, "py/object": "rasa_core.featurizers.MaxHistoryTrackerFeaturizer"} \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/memorized_turns.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/memorized_turns.json index 8de1067..cd7b9d4 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/memorized_turns.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_0_MemoizationPolicy/memorized_turns.json @@ -1,44 +1,25 @@ { - "max_history": 5, "lookup": { - "eJyLzivNydFRQCari3Py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AFEeCwDYVSAD": 4, + "eJyLri4oSi2LT0wuyczPiy9PTSzJSC2yUjDUM9BRKM7JL4nPyU9OBMsZgEVrdRSqM/NKUvNK4tPz81OSKlOhipGNycksBqrAZ0osACHAKcM=": 3, + "eJyLrq7VUajOzCtJzSuJTy9KTS2xUjDUM9BRKChKLYtPTC7JzM+Lz8ksBsqDJWpjAcuCEaM=": 2 + }, + "max_history": 2 } \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/featurizer.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/featurizer.json index 8b9a22c..bde151d 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/featurizer.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/featurizer.json @@ -1 +1 @@ -{"py/object": "rasa_core.featurizers.MaxHistoryTrackerFeaturizer", "max_history": 5, "remove_duplicates": true, "state_featurizer": {"py/object": "rasa_core.featurizers.BinarySingleStateFeaturizer", "input_state_map": {"entity_location": 3, "intent_goodbye": 1, "intent_greet": 0, "intent_inform": 2, "prev_action_listen": 5, "prev_action_restart": 6, "prev_action_weather": 10, "prev_utter_ask_location": 9, "prev_utter_goodbye": 8, "prev_utter_greet": 7, "slot_location_0": 4}, "num_features": 11, "slot_feature_len": 1, "user_feature_len": 4}, "use_intent_probabilities": false} \ No newline at end of file +{"use_intent_probabilities": false, "remove_duplicates": true, "state_featurizer": {"slot_feature_len": 1, "input_state_map": {"prev_utter_greet": 7, "prev_action_listen": 5, "intent_goodbye": 1, "intent_greet": 0, "prev_utter_ask_location": 9, "entity_location": 3, "prev_action_weather": 10, "prev_utter_goodbye": 8, "prev_action_restart": 6, "slot_location_0": 4, "intent_inform": 2}, "user_feature_len": 4, "num_features": 11, "py/object": "rasa_core.featurizers.BinarySingleStateFeaturizer"}, "max_history": 5, "py/object": "rasa_core.featurizers.MaxHistoryTrackerFeaturizer"} \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_arch.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_arch.json index c095684..69c9044 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_arch.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_arch.json @@ -1 +1 @@ -{"class_name": "Sequential", "config": [{"class_name": "Masking", "config": {"name": "masking_1", "trainable": true, "batch_input_shape": [null, 5, 11], "dtype": "float32", "mask_value": -1}}, {"class_name": "LSTM", "config": {"name": "lstm_1", "trainable": true, "return_sequences": false, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "units": 32, "activation": "tanh", "recurrent_activation": "hard_sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "VarianceScaling", "config": {"scale": 1.0, "mode": "fan_avg", "distribution": "uniform", "seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.2, "recurrent_dropout": 0.0, "implementation": 1}}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "batch_input_shape": [null, 32], "dtype": "float32", "units": 6, "activation": "linear", "use_bias": true, "kernel_initializer": {"class_name": "VarianceScaling", "config": {"scale": 1.0, "mode": "fan_avg", "distribution": "uniform", "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Activation", "config": {"name": "activation_1", "trainable": true, "activation": "softmax"}}], "keras_version": "2.1.6", "backend": "tensorflow"} \ No newline at end of file +{"backend": "tensorflow", "config": [{"config": {"mask_value": -1, "name": "masking_1", "batch_input_shape": [null, 5, 11], "dtype": "float32", "trainable": true}, "class_name": "Masking"}, {"config": {"recurrent_regularizer": null, "recurrent_initializer": {"config": {"gain": 1.0, "seed": null}, "class_name": "Orthogonal"}, "dropout": 0.2, "units": 32, "bias_initializer": {"config": {}, "class_name": "Zeros"}, "implementation": 1, "bias_regularizer": null, "use_bias": true, "activity_regularizer": null, "kernel_constraint": null, "recurrent_activation": "hard_sigmoid", "kernel_regularizer": null, "kernel_initializer": {"config": {"distribution": "uniform", "scale": 1.0, "seed": null, "mode": "fan_avg"}, "class_name": "VarianceScaling"}, "activation": "tanh", "recurrent_dropout": 0.0, "stateful": false, "return_sequences": false, "bias_constraint": null, "trainable": true, "unroll": false, "unit_forget_bias": true, "return_state": false, "name": "lstm_1", "recurrent_constraint": null, "go_backwards": false}, "class_name": "LSTM"}, {"config": {"bias_regularizer": null, "units": 6, "activation": "linear", "kernel_initializer": {"config": {"distribution": "uniform", "scale": 1.0, "seed": null, "mode": "fan_avg"}, "class_name": "VarianceScaling"}, "bias_initializer": {"config": {}, "class_name": "Zeros"}, "bias_constraint": null, "batch_input_shape": [null, 32], "trainable": true, "activity_regularizer": null, "kernel_constraint": null, "kernel_regularizer": null, "name": "dense_1", "dtype": "float32", "use_bias": true}, "class_name": "Dense"}, {"config": {"activation": "softmax", "name": "activation_1", "trainable": true}, "class_name": "Activation"}], "keras_version": "2.1.6", "class_name": "Sequential"} \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_policy.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_policy.json index 68a32ba..f9d5220 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_policy.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_policy.json @@ -1,5 +1,5 @@ { - "arch": "keras_arch.json", "weights": "keras_weights.h5", - "epochs": 300 + "arch": "keras_arch.json", + "epochs": 500 } \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_weights.h5 b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_weights.h5 index 9be381a..21fb2d3 100644 Binary files a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_weights.h5 and b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_1_KerasPolicy/keras_weights.h5 differ diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_metadata.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_metadata.json index eaf61d2..81540db 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_metadata.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/policy_metadata.json @@ -1,11 +1,19 @@ { + "policy_names": [ + "rasa_core.policies.memoization.MemoizationPolicy", + "rasa_core.policies.keras_policy.KerasPolicy" + ], + "max_histories": [ + 2, + 5 + ], "action_fingerprints": { - "null": { + "action_listen": { "slots": [ "location" ] }, - "action_listen": { + "action_weather": { "slots": [ "location" ] @@ -14,16 +22,13 @@ "slots": [ "location" ] + }, + "null": { + "slots": [ + "location" + ] } }, - "rasa_core": "0.9.3", - "max_histories": [ - 5, - 5 - ], "ensemble_name": "rasa_core.policies.ensemble.SimplePolicyEnsemble", - "policy_names": [ - "rasa_core.policies.memoization.MemoizationPolicy", - "rasa_core.policies.keras_policy.KerasPolicy" - ] + "rasa_core": "0.9.4" } \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/stories.md b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/stories.md index 00fdc4c..81a65e5 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/stories.md +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/dialogue/stories.md @@ -1,121 +1,140 @@ -## Generated Story 9198602637901495842 - - slot{"location": "London"} +## Generated Story -8828331135227293059 +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export - -## Generated Story -4817703325942303097 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export -## Generated Story 3697573780950753239 -* greet - - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +## Generated Story -6349402806777854425 + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - -## Generated Story -5817247398929467644 + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye + +## Generated Story -4983307849204575966 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export - -## Generated Story -7288126902722435979 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export + +## Generated Story -262572429025283354 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export - -## Generated Story 8246730018223364436 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - - slot{"location": "London"} + - export + +## Generated Story -3608733741661257005 +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export - -## Generated Story -7406349579961089690 - - slot{"location": "London"} +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export + +## Generated Story -3603319560253318451 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} + - action_weather + - slot{"location": "italy"} +* goodbye + - utter_goodbye + - export + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export -## Generated Story -6554577775107190641 +## Generated Story -2560078637582081157 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story 518801362464620422 +## Generated Story 4786430259001180525 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -123,14 +142,29 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export + - slot{"location": "London"} + - action_weather +* goodbye + - utter_goodbye + - export -## Generated Story -1862945706377684408 +## Generated Story -2831449610831660906 +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} + - action_weather +* goodbye + - utter_goodbye - slot{"location": "London"} - action_weather * goodbye @@ -138,65 +172,75 @@ - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story -4203552708931472976 +## Generated Story -1901213110004879032 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} + - action_weather +* goodbye + - utter_goodbye +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story -4189572299095597757 +## Generated Story -1487583418566071892 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - -## Generated Story 6067578297871085723 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export + +## Generated Story 5995406795452229325 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -205,57 +249,75 @@ * goodbye - utter_goodbye - export - -## Generated Story 4694361073716100217 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export + +## Generated Story 9021329185375435518 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - slot{"location": "London"} +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export - -## Generated Story 3370240465746734443 - - slot{"location": "London"} +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export - - slot{"location": "London"} + +## Generated Story -4654476741315117327 +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export - - slot{"location": "London"} +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export - -## Generated Story -4379298816833539338 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export + +## Generated Story 8587942896092282190 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -264,117 +326,156 @@ * goodbye - utter_goodbye - export - -## Generated Story -2213038055289337041 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export + +## Generated Story -4357767577592057717 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export + +## Generated Story -262572429025283354 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export - -## Generated Story -2661974202718646358 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export + +## Generated Story -2560078637582081157 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - slot{"location": "London"} +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export -## Generated Story 8742810332652194528 +## Generated Story 2016773158361165977 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - - slot{"location": "London"} + - export +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export -## Generated Story -5934062028351883773 +## Generated Story -1487583418566071892 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - slot{"location": "London"} +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export - - slot{"location": "London"} +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export -## Generated Story 1005236678500054651 +## Generated Story 4786430259001180525 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - slot{"location": "London"} +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export @@ -384,41 +485,38 @@ - utter_goodbye - export -## Generated Story -5565185095839698898 - - slot{"location": "London"} +## Generated Story -1901213110004879032 +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export - - slot{"location": "London"} +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - export * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story 4252503256190640341 - - slot{"location": "London"} - - action_weather -* goodbye - - utter_goodbye - - export +## Generated Story -6129540678854629005 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -426,52 +524,52 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - action_weather -* goodbye - - utter_goodbye - -## Generated Story 7001657124919983607 - - slot{"location": "London"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story 6455668195490811493 +## Generated Story -6349402806777854425 + - slot{"location": "London"} + - action_weather +* goodbye + - utter_goodbye + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye + +## Generated Story 7028959865611850951 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -479,76 +577,82 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export -## Generated Story -6698333956902257625 +## Generated Story -8309182755129533352 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - slot{"location": "London"} +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story -4152327856440236265 +## Generated Story 7298495626397392626 * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye -* greet - - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} + - export + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export -## Generated Story -818106284317272072 +## Generated Story 9021329185375435518 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -556,31 +660,33 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export -## Generated Story 9084570486426781732 +## Generated Story 8587942896092282190 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -593,29 +699,41 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export -## Generated Story 980316142909355867 +## Generated Story -9141364701775546574 +* greet + - utter_greet +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} + - action_weather +* goodbye + - utter_goodbye * greet - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -623,21 +741,21 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export -## Generated Story -8197147146429844162 +## Generated Story 5995406795452229325 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -646,47 +764,52 @@ * goodbye - utter_goodbye - export -* greet - - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export -## Generated Story -6575932923249690692 +## Generated Story -3603319560253318451 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye -* greet - - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} + - export + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export + +## Generated Story 4363731819556012118 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye + - slot{"location": "London"} + - action_weather +* goodbye + - utter_goodbye + - export -## Generated Story -4196938355080450988 +## Generated Story -3092850912426012198 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye @@ -694,148 +817,161 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} + - action_weather +* goodbye + - utter_goodbye + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export -## Generated Story 3681542899614476039 -* greet - - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +## Generated Story -4983307849204575966 + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye -* greet - - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} + - export + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye -* greet - - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} + - export + +## Generated Story -1710615223613286626 + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export -## Generated Story -7635624169825088483 +## Generated Story -6408446695535033701 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - - slot{"location": "London"} + +## Generated Story -8828331135227293059 +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} - - action_weather -* goodbye - - utter_goodbye - -## Generated Story -7559319614651942561 - - slot{"location": "London"} +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export + +## Generated Story -4654476741315117327 * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye - -## Generated Story -7515294912225405617 - slot{"location": "London"} - action_weather * goodbye - utter_goodbye - export - - slot{"location": "London"} + +## Generated Story -3608733741661257005 +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story 5962658832731755944 +## Generated Story -2831449610831660906 * greet - utter_greet -* inform - - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -* greet - - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} + - slot{"location": "London"} - action_weather * goodbye - utter_goodbye + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye -## Generated Story -8208197466504843908 - - slot{"location": "London"} +## Generated Story 7749593686124031932 +* greet + - utter_greet +* inform + - utter_ask_location +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye - export @@ -843,17 +979,19 @@ - utter_greet * inform - utter_ask_location -* inform{"location": "Lithuania"} - - slot{"location": "Lithuania"} - - slot{"location": "Lithuania"} +* inform{"location": "italy"} + - slot{"location": "italy"} + - slot{"location": "italy"} - action_weather + - slot{"location": "italy"} * goodbye - utter_goodbye + - export * greet - utter_greet -* inform{"location": "Paris"} - - slot{"location": "Paris"} - - slot{"location": "Paris"} +* inform{"location": "Italy"} + - slot{"location": "Italy"} + - slot{"location": "Italy"} - action_weather * goodbye - utter_goodbye diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/crf_model.pkl b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/crf_model.pkl index 57af0f1..adccff0 100644 Binary files a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/crf_model.pkl and b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/crf_model.pkl differ diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/intent_classifier_sklearn.pkl b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/intent_classifier_sklearn.pkl index 379cc24..1cf42fa 100644 Binary files a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/intent_classifier_sklearn.pkl and b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/intent_classifier_sklearn.pkl differ diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/metadata.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/metadata.json index 242119e..1cc5bc3 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/metadata.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/metadata.json @@ -1,4 +1,5 @@ { + "trained_at": "20180626-193705", "language": "en", "pipeline": [ { @@ -8,20 +9,19 @@ "class": "rasa_nlu.utils.spacy_utils.SpacyNLP" }, { - "name": "tokenizer_spacy", - "class": "rasa_nlu.tokenizers.spacy_tokenizer.SpacyTokenizer" + "class": "rasa_nlu.tokenizers.spacy_tokenizer.SpacyTokenizer", + "name": "tokenizer_spacy" }, { - "name": "intent_featurizer_spacy", - "class": "rasa_nlu.featurizers.spacy_featurizer.SpacyFeaturizer" + "class": "rasa_nlu.featurizers.spacy_featurizer.SpacyFeaturizer", + "name": "intent_featurizer_spacy" }, { + "class": "rasa_nlu.featurizers.regex_featurizer.RegexFeaturizer", "name": "intent_entity_featurizer_regex", - "regex_file": "regex_featurizer.json", - "class": "rasa_nlu.featurizers.regex_featurizer.RegexFeaturizer" + "regex_file": "regex_featurizer.json" }, { - "BILOU_flag": true, "features": [ [ "low", @@ -50,17 +50,18 @@ "pos2" ] ], + "BILOU_flag": true, "max_iterations": 50, + "class": "rasa_nlu.extractors.crf_entity_extractor.CRFEntityExtractor", "L1_c": 1, - "L2_c": 0.001, "name": "ner_crf", "classifier_file": "crf_model.pkl", - "class": "rasa_nlu.extractors.crf_entity_extractor.CRFEntityExtractor" + "L2_c": 0.001 }, { - "name": "ner_synonyms", "synonyms_file": "entity_synonyms.json", - "class": "rasa_nlu.extractors.entity_synonyms.EntitySynonymMapper" + "class": "rasa_nlu.extractors.entity_synonyms.EntitySynonymMapper", + "name": "ner_synonyms" }, { "C": [ @@ -71,16 +72,15 @@ 20, 100 ], + "max_cross_validation_folds": 5, "kernels": [ "linear" ], - "max_cross_validation_folds": 5, - "name": "intent_classifier_sklearn", "classifier_file": "intent_classifier_sklearn.pkl", + "name": "intent_classifier_sklearn", "class": "rasa_nlu.classifiers.sklearn_intent_classifier.SklearnIntentClassifier" } ], "training_data": "training_data.json", - "trained_at": "20180612-204257", "rasa_nlu_version": "0.12.3" } \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/training_data.json b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/training_data.json index 02c6ec8..86147af 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/training_data.json +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/models/nlu/default/weathernlu/training_data.json @@ -1,228 +1,228 @@ { "rasa_nlu_data": { + "regex_features": [], + "entity_synonyms": [], "common_examples": [ { - "intent": "greet", - "text": "Hello" + "text": "Hello", + "intent": "greet" }, { - "intent": "goodbye", - "text": "goodbye" + "text": "goodbye", + "intent": "goodbye" }, { - "intent": "inform", "entities": [ { "start": 22, - "end": 28, "value": "Berlin", - "entity": "location" + "entity": "location", + "end": 28 } ], - "text": "What's the weather in Berlin at the moment?" + "text": "What's the weather in Berlin at the moment?", + "intent": "inform" }, { - "intent": "greet", - "text": "hey" + "text": "hey", + "intent": "greet" }, { - "intent": "greet", - "text": "hello" + "text": "hello", + "intent": "greet" }, { - "intent": "greet", - "text": "hi" + "text": "hi", + "intent": "greet" }, { - "intent": "greet", - "text": "heya" + "text": "heya", + "intent": "greet" }, { - "intent": "greet", - "text": "howdy" + "text": "howdy", + "intent": "greet" }, { - "intent": "greet", - "text": "hey there" + "text": "hey there", + "intent": "greet" }, { - "intent": "goodbye", - "text": "bye" + "text": "bye", + "intent": "goodbye" }, { - "intent": "goodbye", - "text": "goodbye" + "text": "goodbye", + "intent": "goodbye" }, { - "intent": "goodbye", - "text": "bye bye" + "text": "bye bye", + "intent": "goodbye" }, { - "intent": "goodbye", - "text": "see ya" + "text": "see ya", + "intent": "goodbye" }, { - "intent": "goodbye", - "text": "see you later" + "text": "see you later", + "intent": "goodbye" }, { - "intent": "inform", - "text": "What's the weather today?" + "text": "What's the weather today?", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 22, - "end": 28, "value": "London", - "entity": "location" + "entity": "location", + "end": 28 } ], - "text": "What's the weather in London today?" + "text": "What's the weather in London today?", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 30, - "end": 35, "value": "Paris", - "entity": "location" + "entity": "location", + "end": 35 } ], - "text": "Show me what's the weather in Paris" + "text": "Show me what's the weather in Paris", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 32, - "end": 39, "value": "Vilnius", - "entity": "location" + "entity": "location", + "end": 39 } ], - "text": "I wonder what is the weather in Vilnius right now?" + "text": "I wonder what is the weather in Vilnius right now?", + "intent": "inform" }, { - "intent": "inform", - "text": "what is the weather?" + "text": "what is the weather?", + "intent": "inform" }, { - "intent": "inform", - "text": "Tell me the weather" + "text": "Tell me the weather", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 23, - "end": 32, "value": "Barcelona", - "entity": "location" + "entity": "location", + "end": 32 } ], - "text": "Is the weather nice in Barcelona today?" + "text": "Is the weather nice in Barcelona today?", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 14, - "end": 20, "value": "London", - "entity": "location" + "entity": "location", + "end": 20 } ], - "text": "I am going to London today and I wonder what is the weather out there?" + "text": "I am going to London today and I wonder what is the weather out there?", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 25, - "end": 34, "value": "Amsterdam", - "entity": "location" + "entity": "location", + "end": 34 } ], - "text": "I am planning my trip to Amsterdam. What is the weather out there?" + "text": "I am planning my trip to Amsterdam. What is the weather out there?", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 23, - "end": 29, "value": "Dublin", - "entity": "location" + "entity": "location", + "end": 29 } ], - "text": "Show me the weather in Dublin, please" + "text": "Show me the weather in Dublin, please", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 3, - "end": 9, "value": "London", - "entity": "location" + "entity": "location", + "end": 9 } ], - "text": "in London" + "text": "in London", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 0, - "end": 9, "value": "Lithuania", - "entity": "location" + "entity": "location", + "end": 9 } ], - "text": "Lithuania" + "text": "Lithuania", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 14, - "end": 19, "value": "Italy", - "entity": "location" + "entity": "location", + "end": 19 } ], - "text": "Oh, sorry, in Italy" + "text": "Oh, sorry, in Italy", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 23, - "end": 30, "value": "Vilnius", - "entity": "location" + "entity": "location", + "end": 30 } ], - "text": "Tell me the weather in Vilnius" + "text": "Tell me the weather in Vilnius", + "intent": "inform" }, { - "intent": "inform", "entities": [ { "start": 25, - "end": 30, "value": "Italy", - "entity": "location" + "entity": "location", + "end": 30 } ], - "text": "The weather condition in Italy" + "text": "The weather condition in Italy", + "intent": "inform" } - ], - "regex_features": [], - "entity_synonyms": [] + ] } } \ No newline at end of file diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/nlu_core_server.py b/Full Code [Latest release of Rasa NLU and Rasa Core]/nlu_core_server.py new file mode 100644 index 0000000..b5547b2 --- /dev/null +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/nlu_core_server.py @@ -0,0 +1,79 @@ +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function +from __future__ import unicode_literals + +import logging + +from rasa_core.channels import HttpInputChannel +from rasa_core import utils +from rasa_core.agent import Agent +from rasa_core.interpreter import RasaNLUInterpreter +from rasa_core.channels.channel import UserMessage +from rasa_core.channels.direct import CollectingOutputChannel +from rasa_core.channels.rest import HttpInputComponent +from flask import Blueprint, request, jsonify + +logger = logging.getLogger(__name__) +class SimpleWebBot(HttpInputComponent): + """A simple web bot that listens on a url and responds.""" + + def blueprint(self, on_new_message): + custom_webhook = Blueprint('custom_webhook', __name__) + + @custom_webhook.route("/status", methods=['GET']) + def health(): + return jsonify({"status": "ok"}) + + @custom_webhook.route("/", methods=['POST']) + def receive(): + payload = request.json + sender_id = payload.get("sender", None) + text = payload.get("message", None) + print("message received ",text) + + out = CollectingOutputChannel() + on_new_message(UserMessage(text, out, sender_id)) + # responses = [m for _, m in out.messages] + print("output looks like") + print(out) + print("output msg looks like") + print(out.messages) + + responses=None + if len(out.messages)>=1: + responses=out.messages[0]["text"] + + # responses = [m["text"] for _, m in out.messages] + print("responses") + print(responses) + return jsonify(responses) + + return custom_webhook + +def run_nlu_core_server(port_number,serve_forever=True): + + #path to your NLU model + # interpreter = RasaNLUInterpreter("./models/nlu/default/weathernlu") + interpreter = "./models/nlu/default/weathernlu" + # path to your dialogues models + agent = Agent.load("./models/dialogue", interpreter=interpreter) + #http api endpoint for responses + input_channel = SimpleWebBot() + if serve_forever: + agent.handle_channel(HttpInputChannel(port_number, "/chat", input_channel)) + return agent + + + + +if __name__ == '__main__': + port_number=5003 + print("Runnng rasa_core server at port #"+str(port_number)) + print("Sample request") + print("url:http://localhost:"+str(port_number)+"/chat/") + print("url_type:POST") + print("request body type:raw(application/json)") + print('sample request:{ "sender": "default", "message": "how is the weather in Dublin"}') + run_nlu_core_server(port_number) + print("run_nlu_core_server runnng")