We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdbfd03 commit 4a8dc36Copy full SHA for 4a8dc36
nemo_text_processing/text_normalization/hi/taggers/money.py
@@ -51,7 +51,14 @@ def __init__(self, cardinal: GraphFst):
51
52
graph_major_only = optional_graph_negative + currency_major + insert_space + integer
53
graph_major_and_minor = (
54
- optional_graph_negative + currency_major + insert_space + integer + pynini.cross(".", " ") + fraction + insert_space + currency_minor
+ optional_graph_negative
55
+ + currency_major
56
+ + insert_space
57
+ + integer
58
+ + pynini.cross(".", " ")
59
+ + fraction
60
61
+ + currency_minor
62
)
63
64
graph_currencies = graph_major_only | graph_major_and_minor
0 commit comments