mockup #7

Merged
s444519 merged 19 commits from mockup into master 2022-05-04 12:47:45 +02:00
3 changed files with 7 additions and 9 deletions
Showing only changes of commit bf91329bec - Show all commits

View File

@ -1,9 +1,9 @@
# Martyna
class DP:
def __self__():
def __self__(self):
pass
def getAct(slots):
def getAct(self, slots):
# iterate over slots
# find empty
# returns system act

View File

@ -1,9 +1,7 @@
# Mikolaj
class NLG:
def __self__():
def __self__(self):
pass
def getResponse(systemAct):
# check speech act
# generate response
pass
def getResponse(self, systemAct):
return "Witaj, nazywam się Cheddar.\n"

View File

@ -1,8 +1,8 @@
from components.NLU import NLU
from components.NLG import NLG
def generate_response(input):
result = NLU.nlu(input)
return result
inputText = 'Cześć, jak masz na imię?'
print(generate_response(inputText))
print(NLG.getResponse(generate_response(inputText)))