def get_input(input_line, dataset):
    """
    Turn line of embedding indexes to human readable words.
    """
    sentence = []
    for i in range(input_line.size()[0]):
        idx = input_line[i]
        if idx == dataset.pad_idx:
            break
        word = dataset.vocab.itos[idx]
        sentence.append(word)
    return ' '.join(sentence)