Spaces:
Running
Running
p
commited on
Commit
·
a82b119
1
Parent(s):
c9574d9
number to word before punct replacement
Browse files
app.py
CHANGED
@@ -80,8 +80,8 @@ def prepare_sentences(text, lang="mya"):
|
|
80 |
sentences = []
|
81 |
# pre-process the text for some languages
|
82 |
if lang.lower() == "mya":
|
83 |
-
text = text.replace("\u104A", ",").replace("\u104B", ".")
|
84 |
text = convert_mya_numbers_to_words(text)
|
|
|
85 |
|
86 |
if lang.lower() == "eng":
|
87 |
text = convert_eng_numbers_to_words(text)
|
|
|
80 |
sentences = []
|
81 |
# pre-process the text for some languages
|
82 |
if lang.lower() == "mya":
|
|
|
83 |
text = convert_mya_numbers_to_words(text)
|
84 |
+
text = text.replace("\u104A", ",").replace("\u104B", ".")
|
85 |
|
86 |
if lang.lower() == "eng":
|
87 |
text = convert_eng_numbers_to_words(text)
|