Skip to content

Tamil TN Cardinal Semiotic Class - #449

Open
surendran-246 wants to merge 37 commits into
NVIDIA:staging/tamil_tn_v1from
surendran-246:feat-ta-cardinal
Open

Tamil TN Cardinal Semiotic Class#449
surendran-246 wants to merge 37 commits into
NVIDIA:staging/tamil_tn_v1from
surendran-246:feat-ta-cardinal

Conversation

@surendran-246

@surendran-246 surendran-246 commented Jul 7, 2026

Copy link
Copy Markdown

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

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.

surendran-246 and others added 10 commits July 7, 2026 13:51
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
for more information, see https://pre-commit.ci

Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
@surendran-246 surendran-246 changed the title Tamil language cardinal semiotic class Tamil TN Cardinal Semiotic Class Jul 7, 2026
@surendran-246
surendran-246 marked this pull request as ready for review July 7, 2026 10:50
surendran-246 and others added 6 commits July 8, 2026 11:04
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
@github-actions

Copy link
Copy Markdown

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 Jul 23, 2026
Signed-off-by: surendran-246 <surendrans@nvidia.com>
surendran-246 and others added 2 commits July 23, 2026 18:44
@github-actions github-actions Bot removed the Stale label Jul 24, 2026
Signed-off-by: surendran-246 <surendrans@nvidia.com>
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

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.

Signed-off-by: surendran-246 <surendrans@nvidia.com>
@folivoramanh
folivoramanh requested a review from mgrafu August 28, 2026 03:45
@surendran-246

Copy link
Copy Markdown
Author

make sure both pytest and sparrrowhawk test pass

Completed the pytest and sparrowhawk tests, and both passed successfully.

Comment thread nemo_text_processing/text_normalization/ta/data/numbers/hundred_ta.tsv Outdated
teens_and_ties = teens_ties

# digit_oru
one_oru = pynini.cross("1", "ஒரு") | pynini.cross("௧", "ஒரு")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's have everything be files instead of hardcoding

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and moved to one_oru.tsv file.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't see the file in the PR?

Comment thread nemo_text_processing/text_normalization/ta/taggers/cardinal.py Outdated
Comment thread nemo_text_processing/text_normalization/ta/taggers/cardinal.py Outdated
Comment thread nemo_text_processing/text_normalization/ta/taggers/cardinal.py
Comment thread nemo_text_processing/text_normalization/ta/taggers/cardinal.py Outdated
Comment thread nemo_text_processing/text_normalization/ta/taggers/punctuation.py
Comment thread tools/text_processing_deployment/ta_tn_grammars_cased/verbalize/verbalize.far Outdated
Comment thread tests/nemo_text_processing/ta/test_sparrowhawk_normalization.sh Outdated
Comment thread nemo_text_processing/text_normalization/ta/verbalizers/verbalize_final.py Outdated
Comment thread nemo_text_processing/text_normalization/ta/verbalizers/cardinal.py Outdated
Comment thread nemo_text_processing/text_normalization/ta/verbalizers/cardinal.py Outdated
Comment thread nemo_text_processing/text_normalization/ta/verbalizers/cardinal.py Outdated
@mgrafu

mgrafu commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

please make sure that all new directories have init files

surendran-246 and others added 2 commits September 3, 2026 10:23
Signed-off-by: surendran-246 <surendrans@nvidia.com>
@surendran-246

Copy link
Copy Markdown
Author

Thanks for the review, @mgrafu. Addressed all the feedback comments.

Testing: Cardinal pytest passed; Sparrowhawk TNCardinal passed.

@surendran-246
surendran-246 requested a review from mgrafu September 3, 2026 06:08
surendran-246 and others added 5 commits September 3, 2026 17:33
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
Signed-off-by: surendran-246 <surendrans@nvidia.com>
done < "$input"
}

#testTNSpecialText() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

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.

3 participants