decoder for tagging tasks