Heavy-Tools / phases /phase2_rules.py
lexicalspace's picture
Upload 9 files
d6dec4f verified
raw
history blame contribute delete
271 Bytes
import yaml, json
def load_rules(path="RULEBOOK.yaml"):
with open(path, "r", encoding="utf-8") as f:
rules = yaml.safe_load(f)
with open("artifacts/normalized_rules.json", "w") as out:
json.dump(rules, out, indent=2)
return rules