NLG
This commit is contained in:
parent
60b63307ba
commit
bf91329bec
@ -1,9 +1,9 @@
|
|||||||
# Martyna
|
# Martyna
|
||||||
class DP:
|
class DP:
|
||||||
def __self__():
|
def __self__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def getAct(slots):
|
def getAct(self, slots):
|
||||||
# iterate over slots
|
# iterate over slots
|
||||||
# find empty
|
# find empty
|
||||||
# returns system act
|
# returns system act
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# Mikolaj
|
# Mikolaj
|
||||||
class NLG:
|
class NLG:
|
||||||
def __self__():
|
def __self__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def getResponse(systemAct):
|
def getResponse(self, systemAct):
|
||||||
# check speech act
|
return "Witaj, nazywam się Cheddar.\n"
|
||||||
# generate response
|
|
||||||
pass
|
|
@ -1,8 +1,8 @@
|
|||||||
from components.NLU import NLU
|
from components.NLU import NLU
|
||||||
|
from components.NLG import NLG
|
||||||
def generate_response(input):
|
def generate_response(input):
|
||||||
result = NLU.nlu(input)
|
result = NLU.nlu(input)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
inputText = 'Cześć, jak masz na imię?'
|
inputText = 'Cześć, jak masz na imię?'
|
||||||
print(generate_response(inputText))
|
print(NLG.getResponse(generate_response(inputText)))
|
||||||
|
Loading…
Reference in New Issue
Block a user