Zaktualizuj 'modules/NLG.py'
add to DST system_acts
This commit is contained in:
parent
cf1e1ab684
commit
c447c27731
@ -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 == '':
|
||||
|
Loading…
Reference in New Issue
Block a user