Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -227,12 +227,16 @@ def sel_lng(lng, mic=None, file=None):
|
|
| 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'\
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
(r'\bnineeit\b', 'nine eight'),
|
| 237 |
(r'\bfipeit\b', 'five eight'), (r'\bdubal\b', 'double'), (r'\bsevenatu\b', 'seven two'),
|
| 238 |
]
|
|
|
|
| 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'), (r'\bnn\b', 'one'),(r'\bek\b', 'one'),
|
| 231 |
+
(r'\btu\b', 'two'),(r'\btoo\b', 'two'),(r'\bdo\b', 'two'),
|
| 232 |
+
(r'\bthiri\b', 'three'), (r'\btiri\b', 'three'), (r'\bdubalathri\b', 'double three'),(r'\btin\b', 'three'),
|
| 233 |
(r'\bfor\b', 'four'),(r'\bfore\b', 'four'),
|
| 234 |
+
(r'\bfib\b', 'five'),(r'\bpaanch\b', 'five'),
|
| 235 |
+
(r'\bchha\b', 'six'),(r'\bchhah\b', 'six'),
|
| 236 |
+
(r'\bdublseven\b', 'double seven'),(r'\bsath\b', 'seven'),
|
| 237 |
+
(r'\baath\b', 'eight'),
|
| 238 |
+
(r'\bnau\b', 'nine'),
|
| 239 |
+
(r'\bdas\b', 'ten'),
|
| 240 |
(r'\bnineeit\b', 'nine eight'),
|
| 241 |
(r'\bfipeit\b', 'five eight'), (r'\bdubal\b', 'double'), (r'\bsevenatu\b', 'seven two'),
|
| 242 |
]
|