2021-04-26 15:00:45 +02:00
|
|
|
from model.SystemActFrame import SystemActFrame
|
|
|
|
|
2021-04-19 16:59:42 +02:00
|
|
|
|
2021-04-26 15:00:45 +02:00
|
|
|
class DialoguePolicy:
|
2021-04-26 14:03:57 +02:00
|
|
|
|
2021-04-26 15:00:45 +02:00
|
|
|
def resolve_system_acts(self, dialogueState):
|
|
|
|
system_acts = []
|
|
|
|
for act in dialogueState.currentActs:
|
|
|
|
if "request()" in act.act:
|
|
|
|
if 'imię' in act.parameters:
|
|
|
|
system_acts.append(SystemActFrame("inform()", ["imię"]))
|
2021-04-26 14:26:52 +02:00
|
|
|
|
2021-04-26 15:00:45 +02:00
|
|
|
return system_acts
|