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 .vscode
models/ models/
.rasa/ .rasa/
writeup.txt

View File

@ -18,3 +18,9 @@ Rasa setup and command list
- ``rasa init`` to create a new project - ``rasa init`` to create a new project
- ``rasa train`` to train your model - ``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 - name: DucklingEntityExtractor
url: http://localhost:8000 url: http://localhost:8000
dimensions: dimensions:
- email - ["email"]
- name: EntitySynonymMapper - name: EntitySynonymMapper
- name: ResponseSelector - name: ResponseSelector
epochs: 100 epochs: 100

View File

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