Skip to content

Commit f5bd97d

Browse files
committed
bugfix: unit test of hindi
Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com>
1 parent 8c792d7 commit f5bd97d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/collections/common/tokenizers/text_to_speech/test_tts_tokenizers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class TestTTSTokenizers:
5656
"नमस्ते": ["nəmˈʌsteː"],
5757
"दुनिया": ["dˈʊnɪjˌã"],
5858
"अच्छा": ["ˈʌtʃtʃʰaː"],
59+
"है": ["hɛː"],
5960
}
6061
PHONEME_DICT_PT_BR = {
6162
"Olá": ["olˈa"],
@@ -273,7 +274,7 @@ def test_ipa_tokenizer_pt_br(self):
273274
def test_ipa_tokenizer_hi_in(self):
274275
"""hi-IN: code-switching (Hindi + English) + Devanagari punctuation (danda)."""
275276
input_text = "नमस्ते world, अच्छा है।"
276-
expected_output = "nəmˈʌsteː ˈwɝɫd, ˈʌtʃtʃʰaː है।"
277+
expected_output = "nəmˈʌsteː ˈwɝɫd, ˈʌtʃtʃʰaː hɛː।"
277278
g2p = IpaG2p(
278279
phoneme_dict=[self.PHONEME_DICT_HI, self.PHONEME_DICT_EN],
279280
locale="hi-IN",

0 commit comments

Comments
 (0)