Skip to content

Commit ea1c266

Browse files
HennerMjongwook
andauthored
Fix bug where mm is mistakenly replaced with hmm in e.g. 20mm (#659)
Co-authored-by: Jong Wook Kim <jongwook@nyu.edu>
1 parent 8135a7c commit ea1c266

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

tests/test_normalizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def test_text_normalizer():
8484
assert std("he's like") == "he is like"
8585
assert std("she's been like") == "she has been like"
8686
assert std("10km") == "10 km"
87+
assert std("10mm") == "10 mm"
8788
assert std("RC232") == "rc 232"
8889

8990
assert (

whisper/normalizers/english.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,5 @@
17371737
"yoghurt": "yogurt",
17381738
"yoghurts": "yogurts",
17391739
"mhm": "hmm",
1740-
"mm": "hmm",
17411740
"mmm": "hmm"
17421741
}

0 commit comments

Comments
 (0)