DialogueStateTracker DialogueState.py added
This commit is contained in:
parent
4c1d303555
commit
24edd4165e
9
model/DialogueState.py
Normal file
9
model/DialogueState.py
Normal file
@ -0,0 +1,9 @@
|
||||
class DialoguePolicy:
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def resolveSystemActs(self, dialogueState):
|
||||
pass
|
||||
|
@ -1,3 +1,40 @@
|
||||
class DialogueStateTracker:
|
||||
pass
|
||||
from model import DialogueState
|
||||
|
||||
class DialogueStateTracker:
|
||||
|
||||
def __init__(self, dialogueState):
|
||||
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
|
Loading…
Reference in New Issue
Block a user