Zaktualizuj 'modules/NLG.py'

add to DST system_acts
This commit is contained in:
Julian Zabłoński 2022-06-14 14:16:05 +02:00
parent cf1e1ab684
commit c447c27731

View File

@ -3,11 +3,13 @@ from xml import dom
value_dict = json.load(open('modules/value_dict.json'))
class NLG:
def __init__(self):
def __init__(self,dst):
self.answer = ''
self.dst = dst
def update(self, system_act):
self.answer = ''
self.dst.state['system_action'].append(system_act)
for domain, intent, slot, value in system_act:
if domain == 'cinema' and intent == 'inform' and slot == 'seat':
if value == '':