From f26b61e0015a144c5b97d5087c9cb7486f55dbfc Mon Sep 17 00:00:00 2001 From: Jan Krepl Date: Tue, 9 Mar 2021 10:49:53 +0100 Subject: [PATCH] Make sure sorted --- spacy/pipeline/entityruler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/entityruler.py b/spacy/pipeline/entityruler.py index 25bc3abee..4e61dbca7 100644 --- a/spacy/pipeline/entityruler.py +++ b/spacy/pipeline/entityruler.py @@ -195,7 +195,7 @@ class EntityRuler(Pipe): all_labels.add(label) else: all_labels.add(l) - return tuple(all_labels) + return tuple(sorted(all_labels)) def initialize( self,