Binbin Gu
2023-09-22 c1d01605bf5c4dc383f4c397ae4f566ce91b214a
Update money.py (#971)

Maybe it would be better surrport "thiry one cent" -> "$0.31" conversion. Some people say this way, and sometimes ASR make mistakes.
1个文件已修改
2 ■■■ 已修改文件
fun_text_processing/inverse_text_normalization/en/taggers/money.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fun_text_processing/inverse_text_normalization/en/taggers/money.py
@@ -53,7 +53,7 @@
            + pynini.union(
                pynutil.add_weight(((DAMO_SIGMA - "one") @ cardinal_graph), -0.7) @ add_leading_zero_to_double_digit
                + delete_space
                + pynutil.delete("cents"),
                + (pynutil.delete("cents") | pynutil.delete("cent")),
                pynini.cross("one", "01") + delete_space + pynutil.delete("cent"),
            )
            + pynutil.insert("\"")