add system frame
This commit is contained in:
parent
491477dbf7
commit
43611746b5
10
src/components/DP.py
Normal file
10
src/components/DP.py
Normal file
@ -0,0 +1,10 @@
|
||||
# Martyna
|
||||
class DP:
|
||||
def __self__():
|
||||
pass
|
||||
|
||||
def getAct(slots):
|
||||
# iterate over slots
|
||||
# find empty
|
||||
# returns system act
|
||||
pass
|
10
src/components/DST.py
Normal file
10
src/components/DST.py
Normal file
@ -0,0 +1,10 @@
|
||||
# Adrian
|
||||
class DST:
|
||||
def __self__():
|
||||
pass
|
||||
|
||||
def getDialogueState(userActs):
|
||||
# iterate over speech acts
|
||||
# fill slots
|
||||
# returns all slots
|
||||
pass
|
9
src/components/NLG.py
Normal file
9
src/components/NLG.py
Normal file
@ -0,0 +1,9 @@
|
||||
# Mikolaj
|
||||
class NLG:
|
||||
def __self__():
|
||||
pass
|
||||
|
||||
def getResponse(systemAct):
|
||||
# check speech act
|
||||
# generate response
|
||||
pass
|
26
src/components/NLU.py
Normal file
26
src/components/NLU.py
Normal file
@ -0,0 +1,26 @@
|
||||
# Iwona
|
||||
class NLU:
|
||||
# add slots
|
||||
|
||||
userSpeechActs = {
|
||||
'hello': None,
|
||||
'null': None,
|
||||
'inform': None,
|
||||
'ack': None,
|
||||
}
|
||||
|
||||
def getUserActs(self, userInput):
|
||||
resultUserActs = []
|
||||
|
||||
# split user input
|
||||
userInput = userInput.lower().split()
|
||||
|
||||
# find key words
|
||||
if "cześć" in userInput:
|
||||
resultUserActs.append(self.userSpeechActs[0])
|
||||
if "imię" in userInput:
|
||||
resultUserActs.append(self.userSpeechActs[0])
|
||||
|
||||
|
||||
# returns user speech act
|
||||
return
|
6
src/dialogue_system.py
Normal file
6
src/dialogue_system.py
Normal file
@ -0,0 +1,6 @@
|
||||
def generate_response(input):
|
||||
result = "pass"
|
||||
return result
|
||||
|
||||
inputText = 'Cześć, jak masz na imię?'
|
||||
print(generate_response(inputText))
|
Loading…
Reference in New Issue
Block a user