10 lines
345 B
Python
10 lines
345 B
Python
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.'
|