fix duckling, domain stuff

This commit is contained in:
Pratyush Desai 2022-09-09 07:24:40 +05:30
parent 6f279a2267
commit 7029a99470
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD
4 changed files with 23 additions and 9 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ venv/
.vscode
models/
.rasa/
writeup.txt

View File

@ -18,3 +18,9 @@ Rasa setup and command list
- ``rasa init`` to create a new project
- ``rasa train`` to train your model
Entity Extraction
=================
- Using duckling the easy way ``docker run -p 8000:8000 rasa/duckling``
- docs https://duckling.wit.ai/#getting-started

View File

@ -15,7 +15,7 @@ pipeline:
- name: DucklingEntityExtractor
url: http://localhost:8000
dimensions:
- email
- ["email"]
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100

View File

@ -14,17 +14,24 @@ intents:
- bye
- affirm
- deny
- bot_challange
- out_of_scope
slots:
email:
type: any
influence_conversation: false
mappings:
- type: custom
first_name:
type: text
influence_conversation: false
mappings:
- type: custom
last_name:
type: text
influence_conversation: false
mappings:
- type: custom
responses:
utter_bye:
- text: |
@ -57,9 +64,9 @@ actions:
forms:
signup_form:
required_slots:
email:
- type: from_slot
first_name:
- type: from_slot
last_name:
- type: from_slot
- email
# - type: from_slot
- first_name
# - type: from_slot
- last_name
# - type: from_slot