olumideola commited on
Commit
4dcc374
·
verified ·
1 Parent(s): f44070a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -4
README.md CHANGED
@@ -12,7 +12,7 @@ language:
12
  - fr
13
  - it
14
  library_name: transformers
15
- pipeline_tag: text2text-generation
16
  base_model: google/byt5-base
17
  tags:
18
  - diacritics
@@ -26,6 +26,13 @@ tags:
26
  datasets:
27
  - olaverse/diacnet-1.1-corpus
28
  - olaverse/diacbench
 
 
 
 
 
 
 
29
  metrics:
30
  - cer
31
  - wer
@@ -62,7 +69,7 @@ print(gen("<pol> Lodz jest piekna")) # Łódź jest piękna
62
 
63
  Evaluated on [diacbench](https://huggingface.co/datasets/olaverse/diacbench) — 1,000 held-out sentences per language, sourced independently of the training corpus. Metrics: **DER** (diacritic error rate, errors restricted to diacritic-eligible characters), **WER**, **CER**, exact sentence match. All figures below use n=300 per language with greedy decoding.
64
 
65
- ![DER by language](./diacbench_der.png)
66
 
67
  | lang | DER | WER | CER | exact | DER with `<auto>` |
68
  |---|---:|---:|---:|---:|---:|
@@ -94,7 +101,7 @@ Low exact-match on Vietnamese and Yorùbá reflects how many marks those languag
94
  | hau | **0.0383** | 0.0593 | 8.58% | **2.53%** | mixed |
95
  | yor | **0.1554** | 0.2006 | **27.69%** | 42.18% | 1.0 better |
96
 
97
- ![WER by language](./diacbench_wer.png)
98
 
99
  Note that DER and WER disagree on ibo/hau/fra: v1.1 makes *fewer wrong words* but a higher share of diacritic-level errors within them. For Hausa the difference is stark — v1.0 got some detail wrong in almost every sentence (0% exact match), while v1.1 is perfect on 60% of sentences and worse on the rest.
100
 
@@ -134,7 +141,7 @@ Scored strictly, **diacnet-1.1 beats Claude on 8 of 10 languages**. With fallbac
134
  | Claude 4.5 | 74.3% | 79.3% | 65.7% | 97.7% | 96.7% | 98.0% | 97.7% | 98.3% | 88.3% | 100% |
135
  | GPT-4o-mini | 68.0% | 57.3% | 49.3% | 93.7% | 96.0% | 94.7% | 97.7% | 97.3% | 96.7% | 99.7% |
136
 
137
- ![Output compliance](./diacbench_compliance.png)
138
 
139
  **WER**
140
 
 
12
  - fr
13
  - it
14
  library_name: transformers
15
+ pipeline_tag: text-generation
16
  base_model: google/byt5-base
17
  tags:
18
  - diacritics
 
26
  datasets:
27
  - olaverse/diacnet-1.1-corpus
28
  - olaverse/diacbench
29
+ widget:
30
+ - text: "<yor> se eranko naa si gbo o?"
31
+ example_title: "Yorùbá"
32
+ - text: "<vie> Toi khong biet tieng Viet"
33
+ example_title: "Vietnamese"
34
+ - text: "<auto> El nino esta en la casa"
35
+ example_title: "auto-detect"
36
  metrics:
37
  - cer
38
  - wer
 
69
 
70
  Evaluated on [diacbench](https://huggingface.co/datasets/olaverse/diacbench) — 1,000 held-out sentences per language, sourced independently of the training corpus. Metrics: **DER** (diacritic error rate, errors restricted to diacritic-eligible characters), **WER**, **CER**, exact sentence match. All figures below use n=300 per language with greedy decoding.
71
 
72
+ ![DER by language](https://cdn-uploads.huggingface.co/production/uploads/69949cbacd82af728f850c12/zVLYyvaWnrHx78T5k_tfA.png)
73
 
74
  | lang | DER | WER | CER | exact | DER with `<auto>` |
75
  |---|---:|---:|---:|---:|---:|
 
101
  | hau | **0.0383** | 0.0593 | 8.58% | **2.53%** | mixed |
102
  | yor | **0.1554** | 0.2006 | **27.69%** | 42.18% | 1.0 better |
103
 
104
+ ![WER by language](https://cdn-uploads.huggingface.co/production/uploads/69949cbacd82af728f850c12/zP3g59zYF0uGx6Hm-L-u_.png)
105
 
106
  Note that DER and WER disagree on ibo/hau/fra: v1.1 makes *fewer wrong words* but a higher share of diacritic-level errors within them. For Hausa the difference is stark — v1.0 got some detail wrong in almost every sentence (0% exact match), while v1.1 is perfect on 60% of sentences and worse on the rest.
107
 
 
141
  | Claude 4.5 | 74.3% | 79.3% | 65.7% | 97.7% | 96.7% | 98.0% | 97.7% | 98.3% | 88.3% | 100% |
142
  | GPT-4o-mini | 68.0% | 57.3% | 49.3% | 93.7% | 96.0% | 94.7% | 97.7% | 97.3% | 96.7% | 99.7% |
143
 
144
+ ![Output compliance](https://cdn-uploads.huggingface.co/production/uploads/69949cbacd82af728f850c12/eQcOc6vpurneX5j8VOydW.png)
145
 
146
  **WER**
147