Added New intents, name entities, duckling for email and etc.

This commit is contained in:
YoMommas Fav 2021-10-21 04:27:26 +02:00
parent 2e4e654351
commit 919e0a7a8c
Signed by untrusted user: pytoxic
GPG Key ID: F6F5F9DB985665D8
6 changed files with 1117 additions and 26 deletions

View File

@ -9,7 +9,11 @@ pipeline:
min_ngram: 1
max_ngram: 4
- name: DIETClassifier
epochs: 100
epochs: 50
- name: DucklingEntityExtractor
url: http://localhost:8000
dimensions:
- email
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
@ -19,4 +23,4 @@ policies:
- name: RulePolicy
- name: TEDPolicy
max_history: 5
epochs: 100
epochs: 100

File diff suppressed because it is too large Load Diff

View File

@ -11,4 +11,19 @@ rules:
steps:
- action: signup_form
- active_loop: null
- action: utter_signedup
- action: utter_signedup
- rule: out_of_scope
steps:
- intent: out_of_scope
- action: utter_out_of_scope
- rule: bot_challange
steps:
- intent: bot_challange
- action: utter_bot_challenge
- rule: bye
steps:
- intent: bye
- action: utter_bye

View File

@ -2,15 +2,43 @@ version: '2.0'
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
entities:
- email
- last_name
- first_name
- full_name
intents:
- greet
- inform
- signup
- bye
- affirm
- deny
- out_of_scope
slots:
email:
type: unfeaturized
type: any
influence_conversation: false
first_name:
type: text
influence_conversation: false
last_name:
type: text
influence_conversation: false
responses:
utter_bye:
- text: |
Goodbye!
utter_out_of_scope/other:
- text: |
I dont understand sorry!
utter_out_of_scope/non_english:
- text: |
I only speak English :(
utter_bot_challenge:
- text: |
I am a bot!
utter_greet:
- text: |
Hello! How can I help you?
@ -22,7 +50,7 @@ responses:
utter_signedup:
- text: |
Check your inbox at {email} in order to finish signing up on Liberta Casa!
- text: You're all set! Check your inbox at {email} to confirm your registration.
You're all set! Check your inbox at {email} to confirm your registration.
actions:
- '...'
- utter_greet
@ -31,4 +59,8 @@ forms:
signup_form:
required_slots:
email:
- type: from_text
- type: from_slot
first_name:
- type: from_slot
last_name:
- type: from_slot

View File

@ -2,4 +2,8 @@ forms:
signup_form:
required_slots:
email:
- type: from_text
- type: from_slot
first_name:
- type: from_slot
last_name:
- type: from_slot

View File

@ -1,14 +1,25 @@
responses:
utter_greet:
- text: |
Hello! How can I help you?
- text: |
Hi!
utter_ask_email:
- text: |
What is your email address?
utter_signedup:
- text: |
Check your inbox at {email} in order to finish signing up on Liberta Casa!
- text: |
You're all set! Check your inbox at {email} to confirm your registration.
utter_bye:
- text: |
Goodbye!
utter_out_of_scope/other:
- text: |
I dont understand sorry!
utter_out_of_scope/non_english:
- text: |
I only speak English :(
utter_bot_challenge:
- text: |
I am a bot!
utter_greet:
- text: |
Hello! How can I help you?
- text: |
Hi!
utter_ask_email:
- text: |
What is your email address?
utter_signedup:
- text: |
Check your inbox at {email} in order to finish signing up on Liberta Casa!
You're all set! Check your inbox at {email} to confirm your registration.