Allow comments

This commit is contained in:
Dominic Zimmer
2026-07-06 23:03:38 +02:00
parent 966d96f643
commit eae2e57f33

View File

@@ -11,6 +11,7 @@ num_easy = num_total - num_hard
sentences = {"easy": [], "hard": []}
with open("prompts.txt") as f:
raw_sentences = f.readlines()
raw_sentences = [ line for line in raw_sentences if line[0] != "#" ]
stripped = "".join(raw_sentences).strip().split("\n")
sentences["easy"] = [ line for line in stripped if "*" not in line ]
sentences["hard"] = [ line.replace("*","") for line in stripped if "*" in line ]