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