Allow comments
This commit is contained in:
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user