def evaluate_and_show_attention(input_sentence, encoder, decoder, target_sentence=None):
    (output_words, attentions) = evaluate(input_sentence, encoder, decoder)
    output_sentence = ' '.join(output_words)
    print('>', input_sentence)
    if (target_sentence is not None):
        print('=', target_sentence)
    print('<', output_sentence)
def evaluate_and_show_attention(input_sentence, encoder, decoder, target_sentence=None):
    (output_words, attentions) = evaluate(input_sentence, encoder, decoder)
    output_sentence = ' '.join(output_words)
    print('>', input_sentence)
    if (target_sentence is not None):
        print('=', target_sentence)
    print('<', output_sentence)