(path: str)
| 22 | |
| 23 | |
| 24 | def load_jsonl(path: str) -> list[dict]: |
| 25 | cases = [] |
| 26 | with open(path, "r", encoding="utf-8") as f: |
| 27 | for line in f: |
| 28 | line = line.strip() |
| 29 | if line: |
| 30 | cases.append(json.loads(line)) |
| 31 | return cases |
| 32 | |
| 33 | |
| 34 | def extract_handcrafted_features(prompt: str, system_prompt: str | None = None) -> np.ndarray: |
no test coverage detected