Skip to content

Conversation

@mgrafu
Copy link
Collaborator

@mgrafu mgrafu commented Aug 19, 2025

What does this PR do ?

New classes, class improvements

Before your PR is "Ready for review"

Pre checks:

  • Have you signed your commits? Use git commit -s to sign.
  • Do all unittests finish successfully before sending PR?
    1. pytest or (if your machine does not have GPU) pytest --cpu from the root folder (given you marked your test cases accordingly @pytest.mark.run_only_on('CPU')).
    2. Sparrowhawk tests bash tools/text_processing_deployment/export_grammars.sh --MODE=test ...
  • If you are adding a new feature: Have you added test cases for both pytest and Sparrowhawk here.
  • Have you added __init__.py for every folder and subfolder, including data folder which has .TSV files?
  • Have you followed codeQL results and removed unused variables and imports (report is at the bottom of the PR in github review box) ?
  • Have you added the correct license header Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. to all newly added Python files?
  • If you copied nemo_text_processing/text_normalization/en/graph_utils.py your header's second line should be Copyright 2015 and onwards Google, Inc.. See an example here.
  • Remove import guards (try import: ... except: ...) if not already done.
  • If you added a new language or a new feature please update the NeMo documentation (lives in different repo).
  • Have you added your language support to tools/text_processing_deployment/pynini_export.py.

PR Type:

  • New Feature
  • Bugfix
  • Documentation
  • Test

If you haven't finished some of the above items you can still open "Draft" PR.

tarushi2k2 and others added 5 commits April 3, 2025 15:46
* Addition of whitelist and word classes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkins date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Future implementations for date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* pushing rough date code for ref

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Future implementations date.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkinsfile

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone.py-hindi itn

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Telephone.py - Hindi ITN

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Telephone modified tagger and verbalizer

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* telephone tagger with 3,4,5 digit std codes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Further additions - telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Jenkins update

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updated tagger-telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone and Jenkinsfile cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update Jenkins

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

---------

Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
…306)

* Addition of whitelist and word classes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkins date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Hindi 2.0

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Signed-off-by: tarushi2k2 <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Mariana <47233618+mgrafu@users.noreply.github.com>

from nemo_text_processing.inverse_text_normalization.hi.utils import get_abs_path
from nemo_text_processing.text_normalization.en.graph_utils import (
from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'apply_fst' is not used.
Import of 'get_abs_path' is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, the unused import statement should be removed from the file. Specifically, delete the line from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path (line 19). This will clean up the code, remove unnecessary dependencies, and improve readability. No other changes are required, as the removal of this import does not affect any functionality in the file.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py
@@ -16,7 +16,6 @@
 import pynini
 from pynini.lib import pynutil
 
-from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path
 from nemo_text_processing.text_normalization.en.utils import load_labels
 from nemo_text_processing.text_normalization.hi.graph_utils import (
     INPUT_CASED,
EOF
@@ -16,7 +16,6 @@
import pynini
from pynini.lib import pynutil

from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path
from nemo_text_processing.text_normalization.en.utils import load_labels
from nemo_text_processing.text_normalization.hi.graph_utils import (
INPUT_CASED,
Copilot is powered by AI and may make mistakes. Always verify output.
from nemo_text_processing.inverse_text_normalization.hi.utils import get_abs_path
from nemo_text_processing.text_normalization.en.graph_utils import (
from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path
from nemo_text_processing.text_normalization.en.utils import load_labels

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'load_labels' is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, simply remove the unused import statement from the file. Specifically, delete the line from nemo_text_processing.text_normalization.en.utils import load_labels (line 20) in nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py. No other changes are required, as this will not affect the functionality of the code.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/fraction.py
@@ -17,7 +17,6 @@
 from pynini.lib import pynutil
 
 from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path
-from nemo_text_processing.text_normalization.en.utils import load_labels
 from nemo_text_processing.text_normalization.hi.graph_utils import (
     INPUT_CASED,
     INPUT_LOWER_CASED,
EOF
@@ -17,7 +17,6 @@
from pynini.lib import pynutil

from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path
from nemo_text_processing.text_normalization.en.utils import load_labels
from nemo_text_processing.text_normalization.hi.graph_utils import (
INPUT_CASED,
INPUT_LOWER_CASED,
Copilot is powered by AI and may make mistakes. Always verify output.
insert_space,
)
from nemo_text_processing.inverse_text_normalization.hi.utils import get_abs_path
from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'apply_fst' is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, simply remove the unused import statement from the file. Specifically, delete line 26: from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path. This will clean up the code, remove unnecessary dependencies, and improve readability. No other changes are required, as the imported names are not used elsewhere in the shown code.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/measure.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/measure.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/measure.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/measure.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/measure.py
@@ -23,7 +23,6 @@
     delete_space,
     insert_space,
 )
-from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path
 
 
 class MeasureFst(GraphFst):
EOF
@@ -23,7 +23,6 @@
delete_space,
insert_space,
)
from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst, get_abs_path


class MeasureFst(GraphFst):
Copilot is powered by AI and may make mistakes. Always verify output.
self.fraction = decimal_graph
self.currency = pynutil.insert("currency: \"") + currency_graph + pynutil.insert("\" ")
aur = pynutil.delete("और")
delete_hundred = pynutil.delete("सौ")

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable delete_hundred is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, we should remove the assignment to the unused variable delete_hundred on line 55. Since the right-hand side of the assignment (pynutil.delete("सौ")) does not have side effects, it is safe to delete the entire line. No other changes are necessary, as the variable is not referenced elsewhere in the code. The fix should be made in the file nemo_text_processing/inverse_text_normalization/hi/taggers/money.py, specifically on line 55.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/money.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py
@@ -52,7 +52,6 @@
         self.fraction = decimal_graph
         self.currency = pynutil.insert("currency: \"") + currency_graph + pynutil.insert("\" ")
         aur = pynutil.delete("और")
-        delete_hundred = pynutil.delete("सौ")
         delete_lakh = pynutil.delete("लाख")
         delete_hazar = pynutil.delete("हजार") | pynutil.delete("हज़ार")
         delete_crore = pynutil.delete("करोड़") | pynutil.delete("करोड़")
EOF
@@ -52,7 +52,6 @@
self.fraction = decimal_graph
self.currency = pynutil.insert("currency: \"") + currency_graph + pynutil.insert("\" ")
aur = pynutil.delete("और")
delete_hundred = pynutil.delete("सौ")
delete_lakh = pynutil.delete("लाख")
delete_hazar = pynutil.delete("हजार") | pynutil.delete("हज़ार")
delete_crore = pynutil.delete("करोड़") | pynutil.delete("करोड़")
Copilot is powered by AI and may make mistakes. Always verify output.
aur = pynutil.delete("और")
delete_hundred = pynutil.delete("सौ")
delete_lakh = pynutil.delete("लाख")
delete_hazar = pynutil.delete("हजार") | pynutil.delete("हज़ार")

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable delete_hazar is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, the unused variable assignment should be removed. This means deleting the line that assigns a value to delete_hazar (line 57) in nemo_text_processing/inverse_text_normalization/hi/taggers/money.py. This change will not affect any existing functionality, as the variable is not used anywhere in the code. No additional imports, methods, or definitions are required for this fix.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/money.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/money.py
@@ -54,7 +54,6 @@
         aur = pynutil.delete("और")
         delete_hundred = pynutil.delete("सौ")
         delete_lakh = pynutil.delete("लाख")
-        delete_hazar = pynutil.delete("हजार") | pynutil.delete("हज़ार")
         delete_crore = pynutil.delete("करोड़") | pynutil.delete("करोड़")
 
         graph_currency_decimal = self.fraction + delete_extra_space + self.currency
EOF
@@ -54,7 +54,6 @@
aur = pynutil.delete("और")
delete_hundred = pynutil.delete("सौ")
delete_lakh = pynutil.delete("लाख")
delete_hazar = pynutil.delete("हजार") | pynutil.delete("हज़ार")
delete_crore = pynutil.delete("करोड़") | pynutil.delete("करोड़")

graph_currency_decimal = self.fraction + delete_extra_space + self.currency
Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +18 to +25
from nemo_text_processing.inverse_text_normalization.hi.graph_utils import (
DEVANAGARI_DIGIT,
GraphFst,
delete_extra_space,
delete_space,
insert_space,
integer_to_devanagari,
)

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'DEVANAGARI_DIGIT' is not used.
Import of 'insert_space' is not used.
Import of 'delete_extra_space' is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, we should remove the unused import of DEVANAGARI_DIGIT from the import statement on line 18. This can be done by simply deleting DEVANAGARI_DIGIT, from the list of imported symbols. No other changes are necessary, as this will not affect the functionality of the code.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/time.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/time.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/time.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/time.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/time.py
@@ -16,7 +16,6 @@
 from pynini.lib import pynutil
 
 from nemo_text_processing.inverse_text_normalization.hi.graph_utils import (
-    DEVANAGARI_DIGIT,
     GraphFst,
     delete_extra_space,
     delete_space,
EOF
@@ -16,7 +16,6 @@
from pynini.lib import pynutil

from nemo_text_processing.inverse_text_normalization.hi.graph_utils import (
DEVANAGARI_DIGIT,
GraphFst,
delete_extra_space,
delete_space,
Copilot is powered by AI and may make mistakes. Always verify output.
import pynini
from pynini.lib import pynutil

from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'apply_fst' is not used.

Copilot Autofix

AI 2 months ago

To fix the problem, the unused import statement should be removed from the file. Specifically, delete the line from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst (line 19). This will clean up the code, remove an unnecessary dependency, and improve readability. No other changes are required, as the rest of the code does not depend on this import.

Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/verbalizers/fraction.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/verbalizers/fraction.py b/nemo_text_processing/inverse_text_normalization/hi/verbalizers/fraction.py
--- a/nemo_text_processing/inverse_text_normalization/hi/verbalizers/fraction.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/verbalizers/fraction.py
@@ -16,7 +16,6 @@
 import pynini
 from pynini.lib import pynutil
 
-from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst
 from nemo_text_processing.text_normalization.en.graph_utils import NEMO_NOT_QUOTE, NEMO_SPACE, GraphFst, delete_space
 
 
EOF
@@ -16,7 +16,6 @@
import pynini
from pynini.lib import pynutil

from nemo_text_processing.inverse_text_normalization.hi.utils import apply_fst
from nemo_text_processing.text_normalization.en.graph_utils import NEMO_NOT_QUOTE, NEMO_SPACE, GraphFst, delete_space


Copilot is powered by AI and may make mistakes. Always verify output.
@github-actions
Copy link

github-actions bot commented Sep 3, 2025

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 3, 2025
@mgrafu mgrafu removed the Stale label Sep 3, 2025
@github-actions
Copy link

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 18, 2025
@mgrafu mgrafu removed the Stale label Sep 22, 2025
@github-actions
Copy link

github-actions bot commented Oct 7, 2025

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 7, 2025
@mgrafu mgrafu removed the Stale label Oct 10, 2025
RajanPutty and others added 2 commits October 13, 2025 11:37
* Fix Jenkinsfile for CI (#325)

* Fix Jenkinsfile for CI

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Fix requirements for test

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Update paths and docker

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Fix docker name

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Fix click version

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Change path of grammars for sparrowhawk tests

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Update paths in sh_test.sh

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Update paths

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Revert paths

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

---------

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* Future implementations to date.py - Hindi ITN  (#265)

* Addition of whitelist and word classes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkins date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Future implementations for date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* pushing rough date code for ref

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Future implementations date.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkinsfile

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone.py-hindi itn

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Telephone.py - Hindi ITN

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Telephone modified tagger and verbalizer

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* telephone tagger with 3,4,5 digit std codes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Further additions - telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Jenkins update

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updated tagger-telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone and Jenkinsfile cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update Jenkins

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

---------

Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* Hindi 2.0: Quarterly Measures, Fraction Exceptions, Changes to Date (#306)

* Addition of whitelist and word classes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkins date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Hindi 2.0

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Signed-off-by: tarushi2k2 <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: Revert date change in Jenkinsfile per review

Signed-off-by: P V RAJAN <rajanv307@gmail.com>

---------

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>
Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Signed-off-by: tarushi2k2 <tarushiv@nvidia.com>
Signed-off-by: RajanPutty <rputty@nvidia.com>
Co-authored-by: anand-nv <105917641+anand-nv@users.noreply.github.com>
Co-authored-by: tarushi2k2 <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: P V RAJAN <rajanv307@gmail.com>
Signed-off-by: Mariana <47233618+mgrafu@users.noreply.github.com>
graph_year_range = self.year_range
graph_year_range_century = self.year_range + delete_space + self.century

graph_ordinal_century = self.ordinal_century + self.morpho_graph + delete_extra_space + self.century

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'graph_ordinal_century' is unnecessary as it is
redefined
before this value is used.

Copilot Autofix

AI 11 days ago

To fix the problem, we should remove the first, unnecessary assignment to graph_ordinal_century on line 90. This can be done by deleting line 90 entirely, confirming that all usage of graph_ordinal_century relies only on the second assignment (line 92). No other changes are needed because this edit does not affect the code’s functionality; the variable remains available for usage after its second and only necessary assignment.


Suggested changeset 1
nemo_text_processing/inverse_text_normalization/hi/taggers/date.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/nemo_text_processing/inverse_text_normalization/hi/taggers/date.py b/nemo_text_processing/inverse_text_normalization/hi/taggers/date.py
--- a/nemo_text_processing/inverse_text_normalization/hi/taggers/date.py
+++ b/nemo_text_processing/inverse_text_normalization/hi/taggers/date.py
@@ -87,7 +87,6 @@
         graph_year_range = self.year_range
         graph_year_range_century = self.year_range + delete_space + self.century
 
-        graph_ordinal_century = self.ordinal_century + self.morpho_graph + delete_extra_space + self.century
 
         graph_ordinal_century = self.ordinal_century + self.morpho_graph + delete_extra_space + self.century
         graph_date_exceptions = self.month + delete_space + pynutil.delete("की") + delete_space + self.day
EOF
@@ -87,7 +87,6 @@
graph_year_range = self.year_range
graph_year_range_century = self.year_range + delete_space + self.century

graph_ordinal_century = self.ordinal_century + self.morpho_graph + delete_extra_space + self.century

graph_ordinal_century = self.ordinal_century + self.morpho_graph + delete_extra_space + self.century
graph_date_exceptions = self.month + delete_space + pynutil.delete("की") + delete_space + self.day
Copilot is powered by AI and may make mistakes. Always verify output.
* Fix Jenkinsfile for CI (#325)

* Fix Jenkinsfile for CI

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Fix requirements for test

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Update paths and docker

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Fix docker name

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Fix click version

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Change path of grammars for sparrowhawk tests

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Update paths in sh_test.sh

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Update paths

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

* Revert paths

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>

---------

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* Future implementations to date.py - Hindi ITN  (#265)

* Addition of whitelist and word classes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkins date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Future implementations for date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* pushing rough date code for ref

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Future implementations date.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkinsfile

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone.py-hindi itn

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Telephone.py - Hindi ITN

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Telephone modified tagger and verbalizer

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* telephone tagger with 3,4,5 digit std codes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Further additions - telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Jenkins update

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updated tagger-telephone.py

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Telephone and Jenkinsfile cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update Jenkins

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

---------

Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* Hindi 2.0: Quarterly Measures, Fraction Exceptions, Changes to Date (#306)

* Addition of whitelist and word classes

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updation of Jenkins date

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Cleanup

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Updation

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* Hindi 2.0

Signed-off-by: Tarushi V <tarushiv@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Signed-off-by: tarushi2k2 <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: P V RAJAN <rajanv307@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: Revert date change in Jenkinsfile per review

Signed-off-by: P V RAJAN <rajanv307@gmail.com>

---------

Signed-off-by: Anand Joseph <anajoseph@nvidia.com>
Signed-off-by: P V RAJAN <rajanv307@gmail.com>
Signed-off-by: Tarushi V <tarushiv@nvidia.com>
Signed-off-by: tarushi2k2 <tarushiv@nvidia.com>
Signed-off-by: RajanPutty <rputty@nvidia.com>
Co-authored-by: anand-nv <105917641+anand-nv@users.noreply.github.com>
Co-authored-by: tarushi2k2 <tarushiv@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: P V RAJAN <rajanv307@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants