From 299452076d93c1b6d80e626aa76ca97681aa84ac Mon Sep 17 00:00:00 2001 From: s459312 Date: Thu, 25 May 2023 15:37:38 +0200 Subject: [PATCH] changed database and dialog policy --- DialogManager.ipynb | 4 ++-- product_db.json | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/DialogManager.ipynb b/DialogManager.ipynb index 542815e..39efc8c 100644 --- a/DialogManager.ipynb +++ b/DialogManager.ipynb @@ -147,13 +147,13 @@ " system_action[(domain, 'NoOffer')] = []\n", " else:\n", " system_action[(domain, 'Inform')].append(['Choice', str(len(self.results))])\n", - "\n", " if domain == \"product\":\n", " # Select the first product that matches the user's constraints\n", " for product in self.results:\n", " if all(product.get(slot, '').lower() == value.lower() for slot, value in constraints):\n", " system_action[(domain, 'Recommend')].append(['Name', product['name']])\n", - " break\n" + " break\n", + "\n" ] }, { diff --git a/product_db.json b/product_db.json index ed57b9c..c1eface 100644 --- a/product_db.json +++ b/product_db.json @@ -1,19 +1,5 @@ { "database":{ - "payment":[ - { - "type":"karta", - "amount":"21 zł", - "loyalty_card":"23232323" - } - ], - "delivery":[ - { - "type":"paczkomat", - "address":"Aleje", - "time":"15:30" - } - ], "product":[ { "name":"banan",