def load_tags(dict_path): ''' 读取tags文件 ''' return init(get_dict_files(dict_path))
def format_rdd(format_func, data_files): formated_rdd = init(get_dict_files(data_files))\ .map(format_func) return formated_rdd