Systemy_DialogowePon15-30/presenter/chatbot_modules/NaturalLanguageGeneration.py

10 lines
345 B
Python
Raw Permalink Normal View History

2021-04-19 16:59:42 +02:00
class NaturalLanguageGeneration:
def generate_text(self, system_frames):
for system_frame in system_frames:
if system_frame.act == 'inform()':
if 'imię' in system_frame.parameters:
return 'Nazywam się Dia.'
else:
return 'Nie rozumiem co masz na myśli.'