(text)
| 426 | |
| 427 | |
| 428 | def normalize_number(text): |
| 429 | text = normalize_with_dictionary(text, unit_to_kor1) |
| 430 | text = normalize_with_dictionary(text, unit_to_kor2) |
| 431 | text = re.sub( |
| 432 | number_checker + count_checker, lambda x: number_to_korean(x, True), text |
| 433 | ) |
| 434 | text = re.sub(number_checker, lambda x: number_to_korean(x, False), text) |
| 435 | return text |
| 436 | |
| 437 | |
| 438 | num_to_kor1 = [""] + list("일이삼사오육칠팔구") |
no test coverage detected