2021-04-26 14:26:52 +02:00
|
|
|
from model.DialogueState import DialogueState
|
2021-04-26 14:03:57 +02:00
|
|
|
|
|
|
|
|
2021-04-26 14:26:52 +02:00
|
|
|
class DialogueStateTracker:
|
2021-04-26 14:03:57 +02:00
|
|
|
|
2021-04-26 14:26:52 +02:00
|
|
|
def __init__(self):
|
|
|
|
self.dialogueState = DialogueState()
|
2021-04-26 14:03:57 +02:00
|
|
|
|
2021-04-26 14:26:52 +02:00
|
|
|
def processUserAct(self, userActsFrame):
|
2021-04-26 14:03:57 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
:param userActsFrame: input of user acts incoming
|
|
|
|
:return: dialogueState
|
|
|
|
"""
|
2021-04-26 14:26:52 +02:00
|
|
|
self.dialogueState.currentActs = userActsFrame
|
2021-04-26 14:03:57 +02:00
|
|
|
|
2021-04-26 14:26:52 +02:00
|
|
|
return self.dialogueState
|