def padding(corpus, seq_len):
    for sent in corpus:
        while (len(sent) < seq_len):
            sent.append(PAD_TOKEN)
        while (len(sent) > seq_len):
            sent.pop()
    return corpus
def padding(corpus, seq_len):
    for sent in corpus:
        while (len(sent) < seq_len):
            sent.append(PAD_TOKEN)
        while (len(sent) > seq_len):
            sent.pop()
    return corpus