Spaces:
Running
Running
David Pomerenke
commited on
Commit
·
7c67b73
1
Parent(s):
1dbf2b8
Add soft hyphens in table header
Browse files
app.py
CHANGED
|
@@ -232,17 +232,17 @@ def create_language_stats_df(metric):
|
|
| 232 |
# if lang["overall_score"] is not None
|
| 233 |
# else "N/A",
|
| 234 |
"Best Model": model_link,
|
| 235 |
-
"
|
| 236 |
if lang["mt_chrf"] is not None
|
| 237 |
else "N/A",
|
| 238 |
-
"
|
| 239 |
if lang["cls_acc"] is not None
|
| 240 |
else "N/A",
|
| 241 |
-
"
|
| 242 |
if lang["mlm_chrf"] is not None
|
| 243 |
else "N/A",
|
| 244 |
-
"
|
| 245 |
-
"Common
|
| 246 |
}
|
| 247 |
flat_data.append(row)
|
| 248 |
|
|
@@ -283,7 +283,7 @@ def create_scatter_plot(metric):
|
|
| 283 |
# Create a list to store data for the scatter plot
|
| 284 |
scatter_data = []
|
| 285 |
for lang in languages_with_scores:
|
| 286 |
-
if lang["speakers"] <
|
| 287 |
continue
|
| 288 |
# Calculate average score for this metric across all models
|
| 289 |
scores = [
|
|
|
|
| 232 |
# if lang["overall_score"] is not None
|
| 233 |
# else "N/A",
|
| 234 |
"Best Model": model_link,
|
| 235 |
+
"Translation": round(lang["mt_chrf"], 3)
|
| 236 |
if lang["mt_chrf"] is not None
|
| 237 |
else "N/A",
|
| 238 |
+
"Classification": round(lang["cls_acc"], 3)
|
| 239 |
if lang["cls_acc"] is not None
|
| 240 |
else "N/A",
|
| 241 |
+
"Masked Language Modeling": round(lang["mlm_chrf"], 3)
|
| 242 |
if lang["mlm_chrf"] is not None
|
| 243 |
else "N/A",
|
| 244 |
+
"Speech Recognition": round(lang["asr_chrf"], 3) if lang["asr_wer"] is not None else "N/A",
|
| 245 |
+
"CommonVoice": commonvoice_link,
|
| 246 |
}
|
| 247 |
flat_data.append(row)
|
| 248 |
|
|
|
|
| 283 |
# Create a list to store data for the scatter plot
|
| 284 |
scatter_data = []
|
| 285 |
for lang in languages_with_scores:
|
| 286 |
+
if lang["speakers"] < 100_000:
|
| 287 |
continue
|
| 288 |
# Calculate average score for this metric across all models
|
| 289 |
scores = [
|