This commit is contained in:
Adrian Charkiewicz 2022-04-19 02:10:28 +02:00
parent 43611746b5
commit 1528307ac6
12 changed files with 23 additions and 16 deletions

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -0,0 +1 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,19.04.2022 01:25,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1 +0,0 @@
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 22:32,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;

View File

@ -1,10 +1,23 @@
# Adrian
class DST:
def __self__():
def __self__(self):
pass
def getDialogueState(userActs):
# is it the only one slot that we need?
slots = {'name': None}
def getDialogueState(self, userActs):
# iterate over speech acts
# fill slots
for k, v in userActs['inform'].items():
if k == 'name':
self.slots['name'] = v
print(self.slots)
# returns all slots
pass
dst = DST()
userActs = {'inform': {'name': 'edyta', 'age': 18}, 'reqmore': {'date', 'time'}}
dst.getDialogueState(userActs)

View File

@ -23,4 +23,5 @@ class NLU:
# returns user speech act
return
return # wyobrażam sobie to jako słownik list krotek UwU {inform:[('name','edyta'), ('age','18')], reqmore:[date,time]}
#słownik słowników???? {inform:{'name':'edyta', 'age':18}, reqmore:{'date','time'}} albo słownik słowników/zbiorów bardziej pasuje