def write_to_ner(cls, ner_data, save_file): """ :param cls: :param ner_data: :param save_file: :return: """ with open(save_file, 'w', encoding='utf-8') as f: f.writelines("\n".join(["\t".join(str(r) for r in row) for row in ner_data]))