Skip to content

Commit

Permalink
fixed Sequence type call to random.sample
Browse files Browse the repository at this point in the history
  • Loading branch information
RichJackson committed Sep 11, 2024
1 parent d879df3 commit 1c297c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kazu/steps/ner/gliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def __init__(
self.label_sets.add(
tuple(
random.sample(
self.gliner_class_prompt_to_entity_class.keys(),
list(self.gliner_class_prompt_to_entity_class.keys()),
k=len(self.gliner_class_prompt_to_entity_class.keys()),
)
)
Expand Down

0 comments on commit 1c297c1

Please sign in to comment.