diff --git a/src/components/DP.py b/src/components/DP.py index 3480747..826fd80 100644 --- a/src/components/DP.py +++ b/src/components/DP.py @@ -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 diff --git a/src/components/NLG.py b/src/components/NLG.py index 53e0fa9..d017344 100644 --- a/src/components/NLG.py +++ b/src/components/NLG.py @@ -1,9 +1,7 @@ # Mikolaj class NLG: - def __self__(): + def __self__(self): pass - def getResponse(systemAct): - # check speech act - # generate response - pass \ No newline at end of file + def getResponse(self, systemAct): + return "Witaj, nazywam się Cheddar.\n" \ No newline at end of file diff --git a/src/dialogue_system.py b/src/dialogue_system.py index 6ce7295..5803d13 100644 --- a/src/dialogue_system.py +++ b/src/dialogue_system.py @@ -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)))