Skip to content

Commit

Permalink
docs: Add sort to domains for task metadata (#1922)
Browse files Browse the repository at this point in the history
Tests currently go into an infinite loop. This should prevent that.
  • Loading branch information
KennethEnevoldsen authored Feb 1, 2025
1 parent e932dfc commit 6f673ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/create_tasks_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def task_to_markdown_row(task: mteb.AbsTask) -> str:
f"[{name}]({task.metadata.reference})" if task.metadata.reference else name
)
domains = (
"[" + ", ".join(task.metadata.domains) + "]" if task.metadata.domains else ""
"[" + ", ".join(sorted(task.metadata.domains)) + "]"
if task.metadata.domains
else ""
)
n_samples = task.metadata.n_samples
dataset_statistics = round_floats_in_dict(task.metadata.descriptive_stats)
Expand Down

0 comments on commit 6f673ba

Please sign in to comment.