Explorar o código

Fix bug where mm is mistakenly replaced with hmm in e.g. 20mm (#659)

Co-authored-by: Jong Wook Kim <jongwook@nyu.edu>
Markus Hennerbichler %!s(int64=2) %!d(string=hai) anos
pai
achega
ea1c266709
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. 1 0
      tests/test_normalizer.py
  2. 0 1
      whisper/normalizers/english.json

+ 1 - 0
tests/test_normalizer.py

@@ -84,6 +84,7 @@ def test_text_normalizer():
     assert std("he's like") == "he is like"
     assert std("she's been like") == "she has been like"
     assert std("10km") == "10 km"
+    assert std("10mm") == "10 mm"
     assert std("RC232") == "rc 232"
 
     assert (

+ 0 - 1
whisper/normalizers/english.json

@@ -1737,6 +1737,5 @@
     "yoghurt": "yogurt",
     "yoghurts": "yogurts",
     "mhm": "hmm",
-    "mm": "hmm",
     "mmm": "hmm"
 }