DialogueStateTracker DialogueState.py added

This commit is contained in:
Wiktor 2021-04-26 13:55:15 +02:00
parent 4c1d303555
commit 24edd4165e
2 changed files with 48 additions and 2 deletions

9
model/DialogueState.py Normal file
View File

@ -0,0 +1,9 @@
class DialoguePolicy:
pass
def __init__(self):
pass
def resolveSystemActs(self, dialogueState):
pass

View File

@ -1,3 +1,40 @@
from model import DialogueState
class DialogueStateTracker: class DialogueStateTracker:
def __init__(self, dialogueState):
pass pass
def processinformFrame(self, userActsFrame, dialogueState):
"""
:param userActsFrame:
:param dialogueState:
:return:
"""
def processUserAct(self, userActsFrame, dialogueState):
"""
:param userActsFrame: input of user acts incoming
:return: dialogueState
"""
dialogueState.currentActs=userActsFrame
if userActsFrame.act == 'hello()':
pass
elif userActsFrame.act == 'request':
pass
elif userActsFrame.act == 'inform':
dialogueState=self.processinformFrame(userActsFrame, dialogueState)
else:
pass
return dialogueState
# def setDialogueState(self, dialogueState):
# self.DialogueState=dialogueState
#
# def getDialogueState(self, dialogueState):
# return self.DialogueState