groups =[['|FOOD|','shrimps','chicken wok','bowl of rice'],['|DRINK|','water','cranberry juice','tea']]
groups =[[''.join([r"""[lemma="{}"]""".format(w)for w in word.split()])ifnot word.startswith("|")andnot word.endswith("|")else word for word in group]for group in groups]