misc update

This commit is contained in:
eugene 2023-06-02 12:43:15 +02:00
parent 247c855d6f
commit b323afbc52
3 changed files with 201 additions and 157 deletions

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 202, "execution_count": 48,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -46,7 +46,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 203, "execution_count": 49,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -57,7 +57,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 204, "execution_count": 50,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -92,7 +92,7 @@
" 'history': []}" " 'history': []}"
] ]
}, },
"execution_count": 204, "execution_count": 50,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -105,7 +105,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 223, "execution_count": 51,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -161,7 +161,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 224, "execution_count": 52,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -171,7 +171,7 @@
" ['Recommend', 'product', 'Name', 'RedBull']]" " ['Recommend', 'product', 'Name', 'RedBull']]"
] ]
}, },
"execution_count": 224, "execution_count": 52,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -186,7 +186,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 225, "execution_count": 53,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -208,7 +208,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 228, "execution_count": 54,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -218,7 +218,7 @@
" ['Recommend', 'product', 'Name', 'pomidor']]" " ['Recommend', 'product', 'Name', 'pomidor']]"
] ]
}, },
"execution_count": 228, "execution_count": 54,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -226,6 +226,48 @@
"source": [ "source": [
"agent.response([('inform', 'product', 'type', 'warzywo'), ('inform', 'product', 'price_range', 'tani'), ('inform', 'product', 'quality', 'exquisite')])" "agent.response([('inform', 'product', 'type', 'warzywo'), ('inform', 'product', 'price_range', 'tani'), ('inform', 'product', 'quality', 'exquisite')])"
] ]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[['Inform', 'product', 'Choice', '11'],\n",
" ['Recommend', 'product', 'Name', 'Sok pomarańczowy']]"
]
},
"execution_count": 55,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"agent.response([('inform', 'product', 'type', 'napój'), ('inform', 'product', 'price_range', 'drogi'), ('inform', 'product', 'quality', 'exquisite')])"
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[['Inform', 'product', 'Choice', '11'],\n",
" ['Recommend', 'product', 'Name', 'banan']]"
]
},
"execution_count": 56,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"agent.response([('inform', 'product', 'type', 'owoc'), ('inform', 'product', 'price_range', 'tani'), ('inform', 'product', 'quality', 'exquisite')])"
]
} }
], ],
"metadata": { "metadata": {

View File

@ -1,36 +1,36 @@
{ {
"user_act":[ "user_act":[
], ],
"system_act":[ "system_act":[
], ],
"belief_state":{ "belief_state":{
"payment":{ "payment":{
"type":"", "type":"",
"amount":"", "amount":"",
"loyalty_card":"" "loyalty_card":""
}, },
"delivery":{ "delivery":{
"type":"", "type":"",
"address":"", "address":"",
"time":"" "time":""
}, },
"product":{ "product":{
"name":"", "name":"",
"type":"", "type":"",
"brand":"", "brand":"",
"price_range":"", "price_range":"",
"price":"", "price":"",
"quantity":"", "quantity":"",
"quality":"" "quality":""
} }
}, },
"request_state":{ "request_state":{
}, },
"terminated":false, "terminated":false,
"history":[ "history":[
] ]
} }

View File

@ -1,113 +1,115 @@
{ {
"database":{ "database":{
"product":[ "product":[
{ {
"name":"banan", "name":"banan",
"type":"owoc", "type":"owoc",
"brand":"banpol", "brand":"banpol",
"price":"21.37", "price":"21.37",
"quantity":"1 kg", "price_range": "tani",
"quality":"premium" "quantity":"1 kg",
}, "quality":"exquisite"
},
{
"name":"pomarańcza", {
"type":"owoc", "name":"pomarańcza",
"brand":"pomarańpol", "type":"owoc",
"price":"24.37", "brand":"pomarańpol",
"quantity":"1 kg", "price":"24.37",
"quality":"premium" "price_range": "drogi",
}, "quantity":"1 kg",
"quality":"premium"
{ },
"name":"pomidor",
"type":"warzywo", {
"brand":"warzywpol", "name":"pomidor",
"price_range":"tani", "type":"warzywo",
"price":"15.37", "brand":"warzywpol",
"quantity":"1 kg", "price_range":"tani",
"quality":"exquisite" "price":"15.37",
}, "quantity":"1 kg",
"quality":"exquisite"
{ },
"name":"papryka",
"type":"warzywo", {
"brand":"warzywpol", "name":"papryka",
"price_range":"tani", "type":"warzywo",
"price":"15.37", "brand":"warzywpol",
"quantity":"1 kg", "price_range":"tani",
"quality":"premium" "price":"15.37",
}, "quantity":"1 kg",
"quality":"premium"
{ },
"name":"iPhone",
"type":"telefon", {
"brand":"Ejpl", "name":"iPhone",
"price":"420", "type":"telefon",
"quantity":"1 szt", "brand":"Ejpl",
"quality":"premium" "price":"420",
}, "quantity":"1 szt",
"quality":"premium"
{ },
"name":"Galaxy s23",
"type":"telefon", {
"brand":"Samsung", "name":"Galaxy s23",
"price":"600", "type":"telefon",
"quantity":"1 szt", "brand":"Samsung",
"quality":"premium" "price":"600",
}, "quantity":"1 szt",
"quality":"premium"
{ },
"name":"RedBull",
"type":"energol", {
"brand":"RedBull", "name":"RedBull",
"price":"0.69", "type":"energol",
"quantity":"330ml", "brand":"RedBull",
"quality":"exquisite" "price":"0.69",
}, "quantity":"330ml",
"quality":"exquisite"
{ },
"name":"Tiger",
"type":"energol", {
"brand":"Tiger", "name":"Tiger",
"price":"0.79", "type":"energol",
"quantity":"330ml", "brand":"Tiger",
"quality":"exquisite" "price":"0.79",
}, "quantity":"330ml",
"quality":"exquisite"
{ },
"name":"Sok pomarańczowy",
"type":"napój", {
"brand":"Sokpol", "name":"Sok pomarańczowy",
"price_range":"drogi", "type":"napój",
"price":"4,56", "brand":"Sokpol",
"quantity":"500ml", "price_range":"drogi",
"quality":"exquisite" "price":"4,56",
}, "quantity":"500ml",
"quality":"exquisite"
{ },
"name":"Sok jabłkowy",
"type":"napój", {
"brand":"Sokpol", "name":"Sok jabłkowy",
"price_range":"drogi", "type":"napój",
"price":"10,56", "brand":"Sokpol",
"quantity":"500ml", "price_range":"drogi",
"quality":"exquisite" "price":"10,56",
}, "quantity":"500ml",
"quality":"exquisite"
{ },
"name":"Sok multiwitamina",
"type":"napój", {
"brand":"Sokpol", "name":"Sok multiwitamina",
"price_range":"tani", "type":"napój",
"price":"5,78", "brand":"Sokpol",
"quantity":"500ml", "price_range":"tani",
"quality":"exquisite" "price":"5,78",
} "quantity":"500ml",
"quality":"exquisite"
] }
} ]
}
}
}