in Seq2SeqNMT/seq2seq_nmt.py [0:0]
def filterPair(p): return len(p[0].split(' ')) < MAX_LENGTH and \ len(p[1].split(' ')) < MAX_LENGTH