Upload finetune_data.py with huggingface_hub
Browse files124 unmodified lines125126127128128129130131132133124 unmodified lines if len(sent) < 4: continue source = do_mask(sent, args) output.write(json.dumps({"source": source, "target": sent}, ensure_ascii=False)) label = int(source != sent) output.write( json.dumps({"source": source, "target": sent, "label": label}, ensure_ascii=False) ) output.write("\n")
finetune_data.py+4-1