DST
This commit is contained in:
parent
43611746b5
commit
1528307ac6
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 12:56,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
1
data/.~lock.dialog-17-04-02.tsv#
Normal file
1
data/.~lock.dialog-17-04-02.tsv#
Normal file
@ -0,0 +1 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,19.04.2022 01:25,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -1 +0,0 @@
|
||||
,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,12.04.2022 22:32,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4;
|
@ -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)
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user