From c1d01605bf5c4dc383f4c397ae4f566ce91b214a Mon Sep 17 00:00:00 2001
From: Binbin Gu <gubinbin@outlook.com>
Date: 星期五, 22 九月 2023 09:01:02 +0800
Subject: [PATCH] Update money.py (#971)

---
 fun_text_processing/inverse_text_normalization/en/taggers/money.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fun_text_processing/inverse_text_normalization/en/taggers/money.py b/fun_text_processing/inverse_text_normalization/en/taggers/money.py
index 7fdfb96..df6812d 100644
--- a/fun_text_processing/inverse_text_normalization/en/taggers/money.py
+++ b/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("\"")

--
Gitblit v1.9.1