def read_bitext(file_path, add_tag_to_trg=False):
    """ Read parallel text with the format: 'src ||| trg' """
    src_sents, trg_sents = [], []
    for line in open(file_path):
        src_trg = line.strip().split('|||')
        src = src_trg[0].strip().split(' ')
        if add_tag_to_trg:
            trg = ['<s>'] + src_trg[1].strip().split(' ') + ['</s>']
        else:
            trg = src_trg[1].strip().split(' ')
        src_sents.append(src)
        trg_sents.append(trg)
    return src_sents, trg_sents