Skip to content

Commit db69b8e

Browse files
committed
Removed the text tag reference from date class verbalizer
Signed-off-by: Namrata Gachchi <ngachchi@nvidia.com>
1 parent 63ef4e6 commit db69b8e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • nemo_text_processing/text_normalization/hi/verbalizers

nemo_text_processing/text_normalization/hi/verbalizers/date.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def __init__(self):
4141

4242
graph_era = pynutil.delete("era: \"") + pynini.closure(NEMO_NOT_QUOTE, 1) + pynutil.delete("\"")
4343

44-
graph_range = pynutil.delete("text: \"") + pynini.closure(NEMO_NOT_QUOTE, 1) + pynutil.delete("\"")
45-
4644
graph_dd_mm = day + NEMO_SPACE + month
4745

4846
graph_mm_dd = month + NEMO_SPACE + day
@@ -64,7 +62,7 @@ def __init__(self):
6462
)
6563

6664
self.graph = (
67-
(graph_dd_mm | graph_mm_dd | graph_dd_mm_yyyy | graph_mm_dd_yyyy | graph_mm_yyyy | graph_era | graph_range)
65+
(graph_dd_mm | graph_mm_dd | graph_dd_mm_yyyy | graph_mm_dd_yyyy | graph_mm_yyyy | graph_era)
6866
+ delete_space
6967
+ optional_preserve_order
7068
)

0 commit comments

Comments
 (0)