diff --git a/sentence_transformers/util.py b/sentence_transformers/util.py index a7fca5be1..d70f784d3 100644 --- a/sentence_transformers/util.py +++ b/sentence_transformers/util.py @@ -404,7 +404,6 @@ def community_detection(embeddings, threshold=0.75, min_community_size=10, batch extracted_ids = set() for cluster_id, community in enumerate(extracted_communities): - community = sorted(community) non_overlapped_community = [] for idx in community: if idx not in extracted_ids: