From a95b580651df4dc4e002b5c7c3b0369a982cbee2 Mon Sep 17 00:00:00 2001 From: aidankhogg Date: Fri, 19 Sep 2025 14:52:23 +0100 Subject: [PATCH] Make schema hint labels deterministic --- src/redactable/detectors/schema_hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redactable/detectors/schema_hints.py b/src/redactable/detectors/schema_hints.py index 1c040c4..d867ae0 100644 --- a/src/redactable/detectors/schema_hints.py +++ b/src/redactable/detectors/schema_hints.py @@ -24,7 +24,7 @@ class SchemaHintDetector: name = "schema_hints" - labels = tuple(set(_HINTS.values())) + labels = tuple(dict.fromkeys(_HINTS.values())) confidence = 0.6 def detect(self, text: str, *, context=None):