From 7029a99470492b6e35962c756088537db4a0b66d Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Fri, 9 Sep 2022 07:24:40 +0530 Subject: [PATCH] fix duckling, domain stuff --- .gitignore | 3 ++- README.rst | 8 +++++++- config.yml | 2 +- domain.yml | 19 +++++++++++++------ 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 0a46a78..4b27f6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ venv/ .vscode models/ -.rasa/ \ No newline at end of file +.rasa/ +writeup.txt \ No newline at end of file diff --git a/README.rst b/README.rst index c3eb9c3..5d94133 100644 --- a/README.rst +++ b/README.rst @@ -17,4 +17,10 @@ Rasa setup and command list =========================== - ``rasa init`` to create a new project -- ``rasa train`` to train your model \ No newline at end of file +- ``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 \ No newline at end of file diff --git a/config.yml b/config.yml index 73f3f63..f70d433 100644 --- a/config.yml +++ b/config.yml @@ -15,7 +15,7 @@ pipeline: - name: DucklingEntityExtractor url: http://localhost:8000 dimensions: - - email + - ["email"] - name: EntitySynonymMapper - name: ResponseSelector epochs: 100 diff --git a/domain.yml b/domain.yml index 85e91d4..9196726 100644 --- a/domain.yml +++ b/domain.yml @@ -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 \ No newline at end of file + - email + # - type: from_slot + - first_name + # - type: from_slot + - last_name + # - type: from_slot \ No newline at end of file