Spaces:
Sleeping
Sleeping
Commit
·
4180e6d
1
Parent(s):
c175fdc
Add token classification summary to report
Browse files
app.py
CHANGED
@@ -68,6 +68,7 @@ def report_summary():
|
|
68 |
for row in df.head(20).itertuples():
|
69 |
language = row[1]
|
70 |
summary += f"# Summary for language: {language}\n"
|
|
|
71 |
summary += f"- [Datasets for token classification task for {language}](https://huggingface.co/datasets?task_categories=task_categories:token-classification&language=language:{language})\n"
|
72 |
summary += f"- Token classification models for [{language}](https://huggingface.co/models?task_categories=task_categories:token-classification&language=language:{language})\n"
|
73 |
summary += f"- All models for [{language}](https://huggingface.co/models?language={language}&sort=trending)\n"
|
|
|
68 |
for row in df.head(20).itertuples():
|
69 |
language = row[1]
|
70 |
summary += f"# Summary for language: {language}\n"
|
71 |
+
summary += f"This language has {len(row[2])} token classification datasets, it has {row[3]} token classification models, and {row[4]} models overall.\n"
|
72 |
summary += f"- [Datasets for token classification task for {language}](https://huggingface.co/datasets?task_categories=task_categories:token-classification&language=language:{language})\n"
|
73 |
summary += f"- Token classification models for [{language}](https://huggingface.co/models?task_categories=task_categories:token-classification&language=language:{language})\n"
|
74 |
summary += f"- All models for [{language}](https://huggingface.co/models?language={language}&sort=trending)\n"
|