This repository has been archived by the owner on Feb 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add chatbot models Add chatbot built models to source control Signed-off-by: PGobz <p.gobin@gmail.com> * Address Rasa NLU issue See explosion/spaCy#2995 Bump base Core image to 12.3, rebuild training data, and address dependency issue. Signed-off-by: PGobz <p.gobin@gmail.com> * Move chatbot from bin - Move server start to entrypoint - Rename build -> models - Move train to module inside top-level chatbot dir Signed-off-by: PGobz <p.gobin@gmail.com>
- Loading branch information
pgobin
committed
Dec 7, 2018
1 parent
e9764f2
commit cb7ff9b
Showing
27 changed files
with
2,872 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2018 Contributors to Hyperledger Sawtooth | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ------------------------------------------------------------------------------ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"states": [ | ||
"intent_affirm", | ||
"intent_awe", | ||
"intent_bye", | ||
"intent_cancel", | ||
"intent_deny", | ||
"intent_feeling", | ||
"intent_greet", | ||
"intent_help", | ||
"intent_insult", | ||
"intent_laugh", | ||
"intent_name", | ||
"intent_reason", | ||
"intent_recommend", | ||
"intent_send", | ||
"intent_thank", | ||
"intent_whoami", | ||
"entity_reason", | ||
"prev_action_listen", | ||
"prev_action_restart", | ||
"prev_action_default_fallback", | ||
"prev_action_deactivate_form", | ||
"prev_utter_default", | ||
"prev_utter_standby", | ||
"prev_utter_recommendation", | ||
"prev_utter_ask_request_access", | ||
"prev_utter_greet", | ||
"prev_utter_draft", | ||
"prev_utter_exclame", | ||
"prev_utter_fanfare_sent", | ||
"prev_utter_request_bye", | ||
"prev_utter_thank", | ||
"prev_utter_feeling", | ||
"prev_utter_bye", | ||
"prev_utter_laugh", | ||
"prev_utter_awe", | ||
"prev_utter_insult", | ||
"prev_utter_help", | ||
"prev_utter_whoami", | ||
"prev_utter_name", | ||
"prev_utter_passive", | ||
"prev_action_request_access" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
%YAML 1.1 | ||
--- | ||
actions: | ||
- utter_default | ||
- utter_standby | ||
- utter_recommendation | ||
- utter_ask_request_access | ||
- utter_greet | ||
- utter_draft | ||
- utter_exclame | ||
- utter_fanfare_sent | ||
- utter_request_bye | ||
- utter_thank | ||
- utter_feeling | ||
- utter_bye | ||
- utter_laugh | ||
- utter_awe | ||
- utter_insult | ||
- utter_help | ||
- utter_whoami | ||
- utter_name | ||
- utter_passive | ||
- action_request_access | ||
config: | ||
store_entities_as_slots: true | ||
entities: | ||
- reason | ||
forms: [] | ||
intents: | ||
- recommend: | ||
use_entities: true | ||
- affirm: | ||
use_entities: true | ||
- deny: | ||
use_entities: true | ||
- greet: | ||
use_entities: true | ||
- send: | ||
use_entities: true | ||
- cancel: | ||
use_entities: true | ||
- bye: | ||
use_entities: true | ||
- thank: | ||
use_entities: true | ||
- feeling: | ||
use_entities: true | ||
- reason: | ||
use_entities: true | ||
- laugh: | ||
use_entities: true | ||
- awe: | ||
use_entities: true | ||
- insult: | ||
use_entities: true | ||
- help: | ||
use_entities: true | ||
- whoami: | ||
use_entities: true | ||
- name: | ||
use_entities: true | ||
slots: | ||
approver_name: | ||
auto_fill: true | ||
initial_value: null | ||
type: rasa_core.slots.UnfeaturizedSlot | ||
reason: | ||
auto_fill: true | ||
initial_value: null | ||
type: rasa_core.slots.UnfeaturizedSlot | ||
resource_id: | ||
auto_fill: true | ||
initial_value: null | ||
type: rasa_core.slots.UnfeaturizedSlot | ||
resource_name: | ||
auto_fill: true | ||
initial_value: null | ||
type: rasa_core.slots.UnfeaturizedSlot | ||
token: | ||
auto_fill: true | ||
initial_value: null | ||
type: rasa_core.slots.UnfeaturizedSlot | ||
templates: | ||
utter_ask_request_access: | ||
- buttons: | ||
- payload: Yes, please. | ||
title: Yes, please | ||
- payload: No, thanks. | ||
title: No, thanks | ||
text: Do you want me to request access for you? | ||
utter_awe: | ||
- text: Pretty great, right? | ||
- text: Yep. | ||
utter_bye: | ||
- text: Talk to you later. | ||
- text: Later gater. | ||
- text: Until next time. | ||
- text: Bye. I will always be here for you. | ||
utter_default: | ||
- text: Sorry, I didn't get that. Can you clarify? | ||
- text: I don't understand what you mean. | ||
utter_draft: | ||
- buttons: | ||
- payload: '/send{"reason": "I need access."}' | ||
title: Send request | ||
- payload: /cancel | ||
title: Nevermind | ||
text: So you'd like to request access for {resource_name}? Great. All you need | ||
to do is draft a note for {approver_name} and I'll take care of the rest. | ||
utter_exclame: | ||
- text: Awesome! | ||
utter_fanfare_sent: | ||
- text: Ta-da! Request sent | ||
utter_feeling: | ||
- text: I'm okay. | ||
- text: I'm just hanging around. | ||
- text: Eh. Could be better I guess. | ||
- text: Do you actually care? | ||
utter_greet: | ||
- text: Bonjour! How can I help you? | ||
- text: Hola! | ||
- text: Sup? | ||
- text: Howdy partner. | ||
- text: Oh hi there. | ||
- text: What's up? | ||
- text: How may I serve you? | ||
utter_help: | ||
- text: I am here to help you get access to resources you need. | ||
utter_insult: | ||
- text: I am trying my best to be helpful. Please let me know more clearly how I | ||
can help you. | ||
- text: All robots make mistakes at some point. This may be one of those moments. | ||
Please tell me what it is you'd like me to do. | ||
utter_laugh: | ||
- text: I know right? | ||
- text: You're hilarious. | ||
- text: Pretty funny. | ||
utter_name: | ||
- text: It's a pleasure to be getting to know you. | ||
- text: That's great. | ||
- text: Cool stuff. | ||
- text: Uh huh. | ||
utter_passive: | ||
- text: Fine. | ||
- text: Have it your way. | ||
utter_recommendation: | ||
- text: Hi! Based on your role, I bet having access to {resource_name} would make | ||
it easier for you to function. | ||
utter_request_bye: | ||
- text: Feel free to ping me anytime. I will notify you once I hear from {approver_name}. | ||
Au revoir! | ||
utter_standby: | ||
- text: Feel free to ping me anytime. | ||
- text: I'll be here for you. | ||
utter_thank: | ||
- text: You're most welcome. | ||
- text: No problem. | ||
- text: My pleasure. | ||
- text: You got it. | ||
- text: Anytime. | ||
- text: Sure thing. | ||
utter_whoami: | ||
- text: I am Dez, a robot designed specifically to help you because you are special | ||
and deserve it. | ||
- text: Who are you? |
1 change: 1 addition & 0 deletions
1
chatbot/models/current/core/policy_0_MemoizationPolicy/featurizer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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} |
Oops, something went wrong.