Skip to content

Commit

Permalink
Revert correcting labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenGr committed Aug 15, 2024
1 parent aa41c68 commit fed0682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bertopic/_bertopic.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def topic_labels_(self):
if self._is_zeroshot():
# Need to correct labels from zero-shot topics
topic_id_to_zeroshot_label = {
self.topic_mapper_.get_mappings()[topic_id]: self.zeroshot_topic_list[zeroshot_topic_idx]
topic_id: self.zeroshot_topic_list[zeroshot_topic_idx]
for topic_id, zeroshot_topic_idx in self._topic_id_to_zeroshot_topic_idx.items()
}
topic_labels.update(topic_id_to_zeroshot_label)
Expand Down

0 comments on commit fed0682

Please sign in to comment.