Milad Alshomary commited on
Commit
224c491
·
1 Parent(s): 64aa784
Files changed (1) hide show
  1. utils/interp_space_utils.py +1 -1
utils/interp_space_utils.py CHANGED
@@ -581,7 +581,7 @@ def compute_clusters_style_representation_3(
581
 
582
  # Build per-author sets of features that have at least one span
583
  author_present_feature_sets = [
584
- {feature for feature, spans in feature_map.items() if len(spans) > 0}
585
  for _, feature_map in filtered_task_authors.items()
586
  ]
587
 
 
581
 
582
  # Build per-author sets of features that have at least one span
583
  author_present_feature_sets = [
584
+ {feature for feature, spans in feature_map.items() if spans and len(spans) > 0}
585
  for _, feature_map in filtered_task_authors.items()
586
  ]
587