19 lines
559 B
Python
19 lines
559 B
Python
exec(open("dialrequirements.py").read())
|
|
|
|
#Print welcome message
|
|
print('------------------------------------------')
|
|
print(' Ongi etorri elkarrizketara.')
|
|
print("Idatz ezazu 'Agur' elkarrizketa bukatzeko.")
|
|
print('------------------------------------------')
|
|
|
|
#Main system loop
|
|
user = input('- ')
|
|
|
|
while user != 'Agur' and user != 'agur':
|
|
sentence = evaluate(' '.join(tokenizer(user)))
|
|
print('- ' + sentence.strip().capitalize())
|
|
user = input('- ')
|
|
|
|
sentence = evaluate(' '.join(tokenizer(user)))
|
|
print('- ' + sentence.strip().capitalize())
|