Skip to content

Commit 4a8dc36

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cdbfd03 commit 4a8dc36

File tree

1 file changed

+8
-1
lines changed
  • nemo_text_processing/text_normalization/hi/taggers

1 file changed

+8
-1
lines changed

nemo_text_processing/text_normalization/hi/taggers/money.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ def __init__(self, cardinal: GraphFst):
5151

5252
graph_major_only = optional_graph_negative + currency_major + insert_space + integer
5353
graph_major_and_minor = (
54-
optional_graph_negative + currency_major + insert_space + integer + pynini.cross(".", " ") + fraction + insert_space + currency_minor
54+
optional_graph_negative
55+
+ currency_major
56+
+ insert_space
57+
+ integer
58+
+ pynini.cross(".", " ")
59+
+ fraction
60+
+ insert_space
61+
+ currency_minor
5562
)
5663

5764
graph_currencies = graph_major_only | graph_major_and_minor

0 commit comments

Comments
 (0)