-
Notifications
You must be signed in to change notification settings - Fork 178
Created cardinal Semiotic class for Kannada TN #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
richa-2002
wants to merge
29
commits into
NVIDIA:staging/kannada_tn_v1
Choose a base branch
from
richa-2002:feat-kn-cardinal
base: staging/kannada_tn_v1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
762ee12
feat(kn): add cardinal TN tagger, verbalizer and test cases
richa-2002 5c898a0
feat(kn): add cardinal TN tagger, verbalizer and test cases
richa-2002 a70a169
feat(kn): add cardinal TN tagger, verbalizer and test cases
richa-2002 6831449
feat(kn): add cardinal TN tagger, verbalizer and test cases
richa-2002 62b7a58
feat(kn): add cardinal TN tagger, verbalizer and test cases
richa-2002 b4063f5
feat(kn): add cardinal TN tagger, verbalizer and test cases
richa-2002 6cf856d
Executed blind test cases
richa-2002 37d5164
kannada_tn
richa-2002 771c2e5
updated cardinal
richa-2002 9f5d166
updated
richa-2002 47b5cea
updated the graph_utils file in cardinals
richa-2002 aae5232
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] beae391
updated cardinals copyright was changed
richa-2002 8c2389b
updated more cardinals copyright was changed
richa-2002 07c7620
updated more cardinals copyright was changed
richa-2002 804510f
changed vare, mukkalu and kalu in graph_utils in cardinal
richa-2002 57ffb5c
added sparrowhawk and jekins for kn lang also done changes in other f…
richa-2002 b722186
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] da7a91d
updated
richa-2002 bd8b050
updated 2
richa-2002 e595656
optimized cardinal file
richa-2002 53b3447
optimized code
richa-2002 9ca6fda
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a214c48
1
richa-2002 37f7fff
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f57e62c
3
richa-2002 62d13ce
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ec825c8
to keep pr active
richa-2002 4d9c16b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. |
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/kn/data/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. |
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/kn/data/numbers/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. |
18 changes: 18 additions & 0 deletions
18
nemo_text_processing/text_normalization/kn/data/numbers/digit.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| 1 ಒಂದು | ||
| 2 ಎರಡು | ||
| 3 ಮೂರು | ||
| 4 ನಾಲ್ಕು | ||
| 5 ಐದು | ||
| 6 ಆರು | ||
| 7 ಏಳು | ||
| 8 ಎಂಟು | ||
| 9 ಒಂಬತ್ತು | ||
| ೧ ಒಂದು | ||
| ೨ ಎರಡು | ||
| ೩ ಮೂರು | ||
| ೪ ನಾಲ್ಕು | ||
| ೫ ಐದು | ||
| ೬ ಆರು | ||
| ೭ ಏಳು | ||
| ೮ ಎಂಟು | ||
| ೯ ಒಂಬತ್ತು |
18 changes: 18 additions & 0 deletions
18
nemo_text_processing/text_normalization/kn/data/numbers/hundreds.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ೧ ನೂರ | ||
| ೨ ಇನ್ನೂರ | ||
| ೩ ಮುನ್ನೂರ | ||
| ೪ ನಾನೂರ | ||
| ೫ ಐನೂರ | ||
| ೬ ಆರುನೂರ | ||
| ೭ ಏಳುನೂರ | ||
| ೮ ಎಂಟುನೂರ | ||
| ೯ ಒಂಬೈನೂರ | ||
| 1 ನೂರ | ||
| 2 ಇನ್ನೂರ | ||
| 3 ಮುನ್ನೂರ | ||
| 4 ನಾನೂರ | ||
| 5 ಐನೂರ | ||
| 6 ಆರುನೂರ | ||
| 7 ಏಳುನೂರ | ||
| 8 ಎಂಟುನೂರ | ||
| 9 ಒಂಬೈನೂರ |
90 changes: 90 additions & 0 deletions
90
nemo_text_processing/text_normalization/kn/data/numbers/teens_and_ties.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| ೧೦ ಹತ್ತು | ||
| ೧೧ ಹನ್ನೊಂದು | ||
| ೧೨ ಹನ್ನೆರಡು | ||
| ೧೩ ಹದಿಮೂರು | ||
| ೧೪ ಹದಿನಾಲ್ಕು | ||
| ೧೫ ಹದಿನೈದು | ||
| ೧೬ ಹದಿನಾರು | ||
| ೧೭ ಹದಿನೇಳು | ||
| ೧೮ ಹದಿನೆಂಟು | ||
| ೧೯ ಹತ್ತೊಂಬತ್ತು | ||
| ೨೦ ಇಪ್ಪತ್ತು | ||
| ೨೧ ಇಪ್ಪತ್ತೊಂದು | ||
| ೨೨ ಇಪ್ಪತ್ತೆರಡು | ||
| ೨೩ ಇಪ್ಪತ್ತಮೂರು | ||
| ೨೪ ಇಪ್ಪತ್ತನಾಲ್ಕು | ||
| ೨೫ ಇಪ್ಪತ್ತೈದು | ||
| ೨೬ ಇಪ್ಪತ್ತಾರು | ||
| ೨೭ ಇಪ್ಪತ್ತೇಳು | ||
| ೨೮ ಇಪ್ಪತ್ತೆಂಟು | ||
| ೨೯ ಇಪ್ಪತ್ತೊಂಬತ್ತು | ||
| ೩೦ ಮೂವತ್ತು | ||
| ೩೧ ಮೂವತ್ತೊಂದು | ||
| ೩೨ ಮೂವತ್ತೆರಡು | ||
| ೩೩ ಮೂವತ್ತಮೂರು | ||
| ೩೪ ಮೂವತ್ತನಾಲ್ಕು | ||
| ೩೫ ಮೂವತ್ತೈದು | ||
| ೩೬ ಮೂವತ್ತಾರು | ||
| ೩೭ ಮೂವತ್ತೇಳು | ||
| ೩೮ ಮೂವತ್ತೆಂಟು | ||
| ೩೯ ಮೂವತ್ತೊಂಬತ್ತು | ||
| ೪೦ ನಲವತ್ತು | ||
| ೪೧ ನಲವತ್ತೊಂದು | ||
| ೪೨ ನಲವತ್ತೆರಡು | ||
| ೪೩ ನಲವತ್ತಮೂರು | ||
| ೪೪ ನಲವತ್ತನಾಲ್ಕು | ||
| ೪೫ ನಲವತ್ತೈದು | ||
| ೪೬ ನಲವತ್ತಾರು | ||
| ೪೭ ನಲವತ್ತೇಳು | ||
| ೪೮ ನಲವತ್ತೆಂಟು | ||
| ೪೯ ನಲವತ್ತೊಂಬತ್ತು | ||
| ೫೦ ಐವತ್ತು | ||
| ೫೧ ಐವತ್ತೊಂದು | ||
| ೫೨ ಐವತ್ತೆರಡು | ||
| ೫೩ ಐವತ್ತಮೂರು | ||
| ೫೪ ಐವತ್ತನಾಲ್ಕು | ||
| ೫೫ ಐವತ್ತೈದು | ||
| ೫೬ ಐವತ್ತಾರು | ||
| ೫೭ ಐವತ್ತೇಳು | ||
| ೫೮ ಐವತ್ತೆಂಟು | ||
| ೫೯ ಐವತ್ತೊಂಬತ್ತು | ||
| ೬೦ ಅರವತ್ತು | ||
| ೬೧ ಅರವತ್ತೊಂದು | ||
| ೬೨ ಅರವತ್ತೆರಡು | ||
| ೬೩ ಅರವತ್ತಮೂರು | ||
| ೬೪ ಅರವತ್ತನಾಲ್ಕು | ||
| ೬೫ ಅರವತ್ತೈದು | ||
| ೬೬ ಅರವತ್ತಾರು | ||
| ೬೭ ಅರವತ್ತೇಳು | ||
| ೬೮ ಅರವತ್ತೆಂಟು | ||
| ೬೯ ಅರವತ್ತೊಂಬತ್ತು | ||
| ೭೦ ಎಪ್ಪತ್ತು | ||
| ೭೧ ಎಪ್ಪತ್ತೊಂದು | ||
| ೭೨ ಎಪ್ಪತ್ತೆರಡು | ||
| ೭೩ ಎಪ್ಪತ್ತಮೂರು | ||
| ೭೪ ಎಪ್ಪತ್ತನಾಲ್ಕು | ||
| ೭೫ ಎಪ್ಪತ್ತೈದು | ||
| ೭೬ ಎಪ್ಪತ್ತಾರು | ||
| ೭೭ ಎಪ್ಪತ್ತೇಳು | ||
| ೭೮ ಎಪ್ಪತ್ತೆಂಟು | ||
| ೭೯ ಎಪ್ಪತ್ತೊಂಬತ್ತು | ||
| ೮೦ ಎಂಬತ್ತು | ||
| ೮೧ ಎಂಬತ್ತೊಂದು | ||
| ೮೨ ಎಂಬತ್ತೆರಡು | ||
| ೮೩ ಎಂಬತ್ತಮೂರು | ||
| ೮೪ ಎಂಬತ್ತನಾಲ್ಕು | ||
| ೮೫ ಎಂಬತ್ತೈದು | ||
| ೮೬ ಎಂಬತ್ತಾರು | ||
| ೮೭ ಎಂಬತ್ತೇಳು | ||
| ೮೮ ಎಂಬತ್ತೆಂಟು | ||
| ೮೯ ಎಂಬತ್ತೊಂಬತ್ತು | ||
| ೯೦ ತೊಂಬತ್ತು | ||
| ೯೧ ತೊಂಬತ್ತೊಂದು | ||
| ೯೨ ತೊಂಬತ್ತೆರಡು | ||
| ೯೩ ತೊಂಬತ್ತಮೂರು | ||
| ೯೪ ತೊಂಬತ್ತನಾಲ್ಕು | ||
| ೯೫ ತೊಂಬತ್ತೈದು | ||
| ೯೬ ತೊಂಬತ್ತಾರು | ||
| ೯೭ ತೊಂಬತ್ತೇಳು | ||
| ೯೮ ತೊಂಬತ್ತೆಂಟು | ||
| ೯೯ ತೊಂಬತ್ತೊಂಬತ್ತು |
90 changes: 90 additions & 0 deletions
90
nemo_text_processing/text_normalization/kn/data/numbers/teens_and_ties_en.tsv
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there any solution that not listing 10 - 99? (eg 20 - 29 share same rule ಮೂ + digit?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| 10 ಹತ್ತು | ||
| 11 ಹನ್ನೊಂದು | ||
| 12 ಹನ್ನೆರಡು | ||
| 13 ಹದಿಮೂರು | ||
| 14 ಹದಿನಾಲ್ಕು | ||
| 15 ಹದಿನೈದು | ||
| 16 ಹದಿನಾರು | ||
| 17 ಹದಿನೇಳು | ||
| 18 ಹದಿನೆಂಟು | ||
| 19 ಹತ್ತೊಂಬತ್ತು | ||
| 20 ಇಪ್ಪತ್ತು | ||
| 21 ಇಪ್ಪತ್ತೊಂದು | ||
| 22 ಇಪ್ಪತ್ತೆರಡು | ||
| 23 ಇಪ್ಪತ್ತಮೂರು | ||
| 24 ಇಪ್ಪತ್ತನಾಲ್ಕು | ||
| 25 ಇಪ್ಪತ್ತೈದು | ||
| 26 ಇಪ್ಪತ್ತಾರು | ||
| 27 ಇಪ್ಪತ್ತೇಳು | ||
| 28 ಇಪ್ಪತ್ತೆಂಟು | ||
| 29 ಇಪ್ಪತ್ತೊಂಬತ್ತು | ||
| 30 ಮೂವತ್ತು | ||
| 31 ಮೂವತ್ತೊಂದು | ||
| 32 ಮೂವತ್ತೆರಡು | ||
| 33 ಮೂವತ್ತಮೂರು | ||
| 34 ಮೂವತ್ತನಾಲ್ಕು | ||
| 35 ಮೂವತ್ತೈದು | ||
| 36 ಮೂವತ್ತಾರು | ||
| 37 ಮೂವತ್ತೇಳು | ||
| 38 ಮೂವತ್ತೆಂಟು | ||
| 39 ಮೂವತ್ತೊಂಬತ್ತು | ||
| 40 ನಲವತ್ತು | ||
| 41 ನಲವತ್ತೊಂದು | ||
| 42 ನಲವತ್ತೆರಡು | ||
| 43 ನಲವತ್ತಮೂರು | ||
| 44 ನಲವತ್ತನಾಲ್ಕು | ||
| 45 ನಲವತ್ತೈದು | ||
| 46 ನಲವತ್ತಾರು | ||
| 47 ನಲವತ್ತೇಳು | ||
| 48 ನಲವತ್ತೆಂಟು | ||
| 49 ನಲವತ್ತೊಂಬತ್ತು | ||
| 50 ಐವತ್ತು | ||
| 51 ಐವತ್ತೊಂದು | ||
| 52 ಐವತ್ತೆರಡು | ||
| 53 ಐವತ್ತಮೂರು | ||
| 54 ಐವತ್ತನಾಲ್ಕು | ||
| 55 ಐವತ್ತೈದು | ||
| 56 ಐವತ್ತಾರು | ||
| 57 ಐವತ್ತೇಳು | ||
| 58 ಐವತ್ತೆಂಟು | ||
| 59 ಐವತ್ತೊಂಬತ್ತು | ||
| 60 ಅರವತ್ತು | ||
| 61 ಅರವತ್ತೊಂದು | ||
| 62 ಅರವತ್ತೆರಡು | ||
| 63 ಅರವತ್ತಮೂರು | ||
| 64 ಅರವತ್ತನಾಲ್ಕು | ||
| 65 ಅರವತ್ತೈದು | ||
| 66 ಅರವತ್ತಾರು | ||
| 67 ಅರವತ್ತೇಳು | ||
| 68 ಅರವತ್ತೆಂಟು | ||
| 69 ಅರವತ್ತೊಂಬತ್ತು | ||
| 70 ಎಪ್ಪತ್ತು | ||
| 71 ಎಪ್ಪತ್ತೊಂದು | ||
| 72 ಎಪ್ಪತ್ತೆರಡು | ||
| 73 ಎಪ್ಪತ್ತಮೂರು | ||
| 74 ಎಪ್ಪತ್ತನಾಲ್ಕು | ||
| 75 ಎಪ್ಪತ್ತೈದು | ||
| 76 ಎಪ್ಪತ್ತಾರು | ||
| 77 ಎಪ್ಪತ್ತೇಳು | ||
| 78 ಎಪ್ಪತ್ತೆಂಟು | ||
| 79 ಎಪ್ಪತ್ತೊಂಬತ್ತು | ||
| 80 ಎಂಬತ್ತು | ||
| 81 ಎಂಬತ್ತೊಂದು | ||
| 82 ಎಂಬತ್ತೆರಡು | ||
| 83 ಎಂಬತ್ತಮೂರು | ||
| 84 ಎಂಬತ್ತನಾಲ್ಕು | ||
| 85 ಎಂಬತ್ತೈದು | ||
| 86 ಎಂಬತ್ತಾರು | ||
| 87 ಎಂಬತ್ತೇಳು | ||
| 88 ಎಂಬತ್ತೆಂಟು | ||
| 89 ಎಂಬತ್ತೊಂಬತ್ತು | ||
| 90 ತೊಂಬತ್ತು | ||
| 91 ತೊಂಬತ್ತೊಂದು | ||
| 92 ತೊಂಬತ್ತೆರಡು | ||
| 93 ತೊಂಬತ್ತಮೂರು | ||
| 94 ತೊಂಬತ್ತನಾಲ್ಕು | ||
| 95 ತೊಂಬತ್ತೈದು | ||
| 96 ತೊಂಬತ್ತಾರು | ||
| 97 ತೊಂಬತ್ತೇಳು | ||
| 98 ತೊಂಬತ್ತೆಂಟು | ||
| 99 ತೊಂಬತ್ತೊಂಬತ್ತು |
2 changes: 2 additions & 0 deletions
2
nemo_text_processing/text_normalization/kn/data/numbers/zero.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| 0 ಸೊನ್ನೆ | ||
| ೦ ಸೊನ್ನೆ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any solution that not listing 10 - 99? (eg 20 - 29 share same rule ಮೂ + digit?)