Skip to content

Commit

Permalink
fix: don't rewrite clean file if exists!
Browse files Browse the repository at this point in the history
  • Loading branch information
zanussbaum committed Mar 26, 2023
1 parent eac7734 commit dfee696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
import pandas as pd


prompt_generation_dir = "prompts-reponses"
prompt_generation_dir = "raw_data_sanity_cleaned_delobotomized"
for file in glob.glob(os.path.join(prompt_generation_dir, "*.jsonl")):
if "clean" in file:
continue
data = []
print(file)
with open(file) as f:
Expand Down

0 comments on commit dfee696

Please sign in to comment.