Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -226,11 +226,14 @@ def sel_lng(lng, mic=None, file=None):
|
|
226 |
# Function to replace incorrectly spelled words
|
227 |
def replace_words(sentence):
|
228 |
replacements = [
|
229 |
-
(r'\bjiro\b', 'zero'), (r'\bjero\b', 'zero'),
|
230 |
-
(r'\bn\b', 'one'), (r'\
|
231 |
-
(r'\
|
232 |
-
(r'\
|
233 |
-
(r'\
|
|
|
|
|
|
|
234 |
(r'\bfipeit\b', 'five eight'), (r'\bdubal\b', 'double'), (r'\bsevenatu\b', 'seven two'),
|
235 |
]
|
236 |
for pattern, replacement in replacements:
|
|
|
226 |
# Function to replace incorrectly spelled words
|
227 |
def replace_words(sentence):
|
228 |
replacements = [
|
229 |
+
(r'\bjiro\b', 'zero'), (r'\bjero\b', 'zero'),
|
230 |
+
(r'\bnn\b', 'one'),(r'\bn\b', 'one'), (r'\bvan\b', 'one'),(r'\bna\b', 'one'),
|
231 |
+
(r'\btu\b', 'two'),(r'\btoo\b', 'two'),
|
232 |
+
(r'\bthiri\b', 'three'), (r'\btiri\b', 'three'), (r'\bdubalathri\b', 'double three'),
|
233 |
+
(r'\bfor\b', 'four'),(r'\bfore\b', 'four'),
|
234 |
+
(r'\bfib\b', 'five'),
|
235 |
+
(r'\bdublseven\b', 'double seven'),
|
236 |
+
(r'\bnineeit\b', 'nine eight'),
|
237 |
(r'\bfipeit\b', 'five eight'), (r'\bdubal\b', 'double'), (r'\bsevenatu\b', 'seven two'),
|
238 |
]
|
239 |
for pattern, replacement in replacements:
|