NLG
This commit is contained in:
parent
6e9112bc9b
commit
cd8da4bdcd
10
src/service/natural_language_generation.py
Normal file
10
src/service/natural_language_generation.py
Normal file
@ -0,0 +1,10 @@
|
||||
class NaturalLanguageGeneration:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def respond_to_name_query(self, question):
|
||||
if "jak masz na imię?" in question.lower():
|
||||
return f"Nazywam się {self.name}."
|
||||
else:
|
||||
return "Nie rozumiem."
|
||||
|
Loading…
Reference in New Issue
Block a user