mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Make sure sorted
This commit is contained in:
parent
3f3e8110dc
commit
f26b61e001
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user