-
Notifications
You must be signed in to change notification settings - Fork 177
Cardinal Semiotic Class for Tamil ITN #452
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
base: staging/tamil_itn_v1
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
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. do not modify
Author
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. Ok sure. |
|
folivoramanh marked this conversation as resolved.
|
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. | ||
| # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. | ||
|
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. do not modify
Author
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. Ok sure. |
||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
|
|
@@ -146,12 +146,18 @@ def __init__( | |
| from nemo_text_processing.inverse_text_normalization.ko.verbalizers.verbalize_final import ( | ||
| VerbalizeFinalFst, | ||
| ) | ||
| elif lang == 'ta': # Tamil | ||
| from nemo_text_processing.inverse_text_normalization.ta.taggers.tokenize_and_classify import ClassifyFst | ||
| from nemo_text_processing.inverse_text_normalization.ta.verbalizers.verbalize_final import ( | ||
| VerbalizeFinalFst, | ||
| ) | ||
| else: | ||
| raise NotImplementedError(f"Language {lang} has not been supported yet.") | ||
|
|
||
| self.tagger = ClassifyFst( | ||
| cache_dir=cache_dir, whitelist=whitelist, overwrite_cache=overwrite_cache, input_case=input_case | ||
| ) | ||
|
|
||
| self.verbalizer = VerbalizeFinalFst() | ||
| self.parser = TokenParser() | ||
| self.lang = lang | ||
|
|
@@ -211,6 +217,7 @@ def parse_args(): | |
| 'mr', | ||
| 'ja', | ||
| 'ko', | ||
| 'ta', | ||
| ], | ||
| default="en", | ||
| type=str, | ||
|
|
||
|
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. only add your language, do not modify the code
Author
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. Sure. |
|
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. add init.py file to data/number and data/ folder (both 2 folders) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ஒன்றின் ௧ இன் | ||
| இரண்டின் ௨ இன் | ||
| மூன்றின் ௩ இன் | ||
| நான்கின் ௪ இன் | ||
| ஐந்தின் ௫ இன் | ||
| ஆறின் ௬ இன் | ||
| ஏழின் ௭ இன் | ||
| எட்டின் ௮ இன் | ||
| ஒன்பதின் ௯ இன் | ||
| ஒன்றில் ௧ இல் | ||
| இரண்டில் ௨ இல் | ||
| மூன்றில் ௩ இல் | ||
| நான்கில் ௪ இல் | ||
| ஐந்தில் ௫ இல் | ||
| ஆறில் ௬ இல் | ||
| ஏழில் ௭ இல் | ||
| எட்டில் ௮ இல் | ||
| ஒன்பதில் ௯ இல் | ||
| பத்தின் ௧௦ இன் | ||
| பத்தில் ௧௦ இல் | ||
| பத்தொன்பதில் ௧௯ இல் | ||
| நூற்றில் ௧௦௦ இல் | ||
| நூற்றின் ௧௦௦ இன் |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ௧ ஒரு கோடி | ||
| ௨ இரண்டு கோடி | ||
| ௩ மூன்று கோடி | ||
| ௪ நான்கு கோடி | ||
| ௫ ஐந்து கோடி | ||
| ௬ ஆறு கோடி | ||
| ௭ ஏழு கோடி | ||
| ௮ எட்டு கோடி | ||
| ௯ ஒன்பது கோடி |
|
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. separate tsv file just to add "யே" to all value? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ௧ ஒரு கோடியே | ||
| ௨ இரண்டு கோடியே | ||
| ௩ மூன்று கோடியே | ||
| ௪ நான்கு கோடியே | ||
| ௫ ஐந்து கோடியே | ||
| ௬ ஆறு கோடியே | ||
| ௭ ஏழு கோடியே | ||
| ௮ எட்டு கோடியே | ||
| ௯ ஒன்பது கோடியே |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ௧ ஒன்று | ||
| ௧ ஒரு | ||
| ௨ இரண்டு | ||
| ௩ மூன்று | ||
| ௪ நான்கு | ||
| ௫ ஐந்து | ||
| ௬ ஆறு | ||
| ௭ ஏழு | ||
| ௮ எட்டு | ||
| ௯ ஒன்பது |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ௧ நூறு | ||
| ௨ இருநூறு | ||
| ௩ முன்னூறு | ||
| ௪ நானூறு | ||
| ௫ ஐநூறு | ||
| ௬ அறுநூறு | ||
| ௭ எழுநூறு | ||
| ௮ எண்ணூறு | ||
| ௮ எட்டுநூறு | ||
| ௯ தொள்ளுநூறு | ||
| ௯ தொள்ளாயிரம் |
|
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. why we need a seperate tsv just to add "ற்"? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| ௧ நூற்று | ||
| ௨ இருநூற்று | ||
| ௩ முன்னூற்று | ||
| ௪ நானூற்று | ||
| ௫ ஐநூற்று | ||
| ௬ அறுநூற்று | ||
| ௭ எழுநூற்று | ||
| ௮ எண்ணூற்று | ||
| ௮ எட்டுநூற்று | ||
| ௯ தொள்ளூற்று | ||
| ௯ தொள்ளாயிரத்து | ||
| ௯ தொள்ளுநூற்று |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ௧ ஒரு இலட்சம் | ||
| ௨ இரண்டு இலட்சம் | ||
| ௩ மூன்று இலட்சம் | ||
| ௪ நான்கு இலட்சம் | ||
| ௫ ஐந்து இலட்சம் | ||
| ௬ ஆறு இலட்சம் | ||
| ௭ ஏழு இலட்சம் | ||
| ௮ எட்டு இலட்சம் | ||
| ௯ ஒன்பது இலட்சம் | ||
| ௧ ஒரு லட்சம் | ||
| ௨ இரண்டு லட்சம் | ||
| ௩ மூன்று லட்சம் | ||
| ௪ நான்கு லட்சம் | ||
| ௫ ஐந்து லட்சம் | ||
| ௬ ஆறு லட்சம் | ||
| ௭ ஏழு லட்சம் | ||
| ௮ எட்டு லட்சம் | ||
| ௯ ஒன்பது லட்சம் |
|
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. what the different between lakhs join and lakhs? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ௧ ஒரு இலட்சத்து | ||
| ௨ இரண்டு இலட்சத்து | ||
| ௩ மூன்று இலட்சத்து | ||
| ௪ நான்கு இலட்சத்து | ||
| ௫ ஐந்து இலட்சத்து | ||
| ௬ ஆறு இலட்சத்து | ||
| ௭ ஏழு இலட்சத்து | ||
| ௮ எட்டு இலட்சத்து | ||
| ௯ ஒன்பது இலட்சத்து | ||
| ௧ ஒரு லட்சத்து | ||
| ௨ இரண்டு லட்சத்து | ||
| ௩ மூன்று லட்சத்து | ||
| ௪ நான்கு லட்சத்து | ||
| ௫ ஐந்து லட்சத்து | ||
| ௬ ஆறு லட்சத்து | ||
| ௭ ஏழு லட்சத்து | ||
| ௮ எட்டு லட்சத்து | ||
| ௯ ஒன்பது லட்சத்து |
Uh oh!
There was an error while loading. Please reload this page.