Skip to content

Commit 0a06cef

Browse files
committed
reverted yyyy code
Signed-off-by: Namrata Gachchi <[email protected]>
1 parent 397fcc8 commit 0a06cef

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

nemo_text_processing/text_normalization/hi/taggers/date.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ def __init__(self, cardinal: GraphFst):
9797
months_graph + (delete_dash | delete_slash) + days_graph + (delete_dash | delete_slash) + years_graph
9898
)
9999

100-
graph_yyyy = pynutil.insert("text: \"") + pynini.compose(pynini.closure(NEMO_HI_DIGIT, 1), cardinal_graph) + pynutil.insert("\"") + insert_space + pynutil.insert(" preserve_order: true ")
101-
102100
graph_mm_dd_yyyy += pynutil.insert(" preserve_order: true ")
103101

104102
graph_mm_yyyy = months_graph + delete_dash + insert_space + years_graph
@@ -127,7 +125,6 @@ def __init__(self, cardinal: GraphFst):
127125
| pynutil.add_weight(graph_year_suffix, -0.001)
128126
| pynutil.add_weight(graph_range, -0.005)
129127
| pynutil.add_weight(century_text, -0.001)
130-
| pynutil.add_weight(graph_yyyy, -0.01)
131128
)
132129

133130
self.final_graph = final_graph.optimize()

tests/nemo_text_processing/hi/data_text_normalization/test_cases_date.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@
2222
३२७वीं सदी~तीन सौ सत्ताईसवीं सदी
2323
१८वीं शताब्दी~अठारहवीं शताब्दी
2424
१९वीं दशक~उन्नीसवीं दशक
25-
१८२३ में~अठारह सौ तेईस में
26-
१९९२ का दशक~उन्नीस सौ बानबे का दशक
27-
१९३२ शताब्दी~उन्नीस सौ बत्तीस शताब्दी

0 commit comments

Comments
 (0)