EvaluationWorkspace

This commit is contained in:
2026-08-20 12:44:58 +02:00
parent ac4ab782b2
commit 2f1cd00e32
11 changed files with 746 additions and 33 deletions
+2 -1
View File
@@ -1,13 +1,14 @@
import re
from pathlib import Path
from copienator import EvaluationWorkspace
from platform_utils import validate_windows_labels
def natural_key(text):
return [int(c) if c.isdigit() else c.lower() for c in re.split(r'(\d+)', str(text))]
def read_all_labels(base_dir):
labels = list(filter(None, (Path(base_dir) / "labels").read_text().splitlines()))
labels = EvaluationWorkspace(Path(base_dir)).read_labels()
validate_windows_labels(labels)
return labels