mockup #7

Merged
s444519 merged 19 commits from mockup into master 2022-05-04 12:47:45 +02:00
12 changed files with 23 additions and 16 deletions
Showing only changes of commit 1528307ac6 - Show all commits

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 # Adrian
class DST: class DST:
def __self__(): def __self__(self):
pass pass
def getDialogueState(userActs): # is it the only one slot that we need?
slots = {'name': None}
def getDialogueState(self, userActs):
# iterate over speech acts # 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 # returns all slots
pass 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 # 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