-
Notifications
You must be signed in to change notification settings - Fork 176
Japanese TN fix and improvement #444
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
folivoramanh
wants to merge
5
commits into
NVIDIA:staging/ja_tn_v1
Choose a base branch
from
folivoramanh:ja_tn
base: staging/ja_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
5 commits
Select commit
Hold shift + click to select a range
ffa2255
Japanese TN fix and improvement
folivoramanh 86b45aa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9084c74
update ja tn coding convention
folivoramanh 78dc958
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f2cc489
update tsv formating
folivoramanh 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 |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ | |
| 二十二 22 | ||
| 二十三 23 | ||
| 二十四 24 | ||
| 零 0 | ||
| ゼロ 0 | ||
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
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/ja/data/address/__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 & AFFILIATES. 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. |
1 change: 1 addition & 0 deletions
1
nemo_text_processing/text_normalization/ja/data/address/postal.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 @@ | ||
| 〒 郵便番号 |
1 change: 1 addition & 0 deletions
1
nemo_text_processing/text_normalization/ja/data/address/room_suffix.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 @@ | ||
| 号室 |
3 changes: 3 additions & 0 deletions
3
nemo_text_processing/text_normalization/ja/data/address/separator.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,3 @@ | ||
| - の | ||
| - の | ||
| ー の |
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 |
|---|---|---|
|
|
@@ -28,4 +28,4 @@ | |
| 28 二十八 | ||
| 29 二十九 | ||
| 30 三十 | ||
| 31 三十一 | ||
| 31 三十一 | ||
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 |
|---|---|---|
|
|
@@ -9,4 +9,4 @@ | |
| グレゴリオ暦 | ||
| 紀元前 | ||
| 紀元 | ||
| 紀元後 | ||
| 紀元後 | ||
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 |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ R. 令和 | |
| H. 平成 | ||
| S. 昭和 | ||
| T. 大正 | ||
| M. 明治 | ||
| M. 明治 | ||
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 |
|---|---|---|
|
|
@@ -9,4 +9,4 @@ | |
| 9 九 | ||
| 10 十 | ||
| 11 十一 | ||
| 12 十二 | ||
| 12 十二 | ||
8 changes: 8 additions & 0 deletions
8
nemo_text_processing/text_normalization/ja/data/date/suffix.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,8 @@ | ||
| year 年 | ||
| month 月 | ||
| day 日 | ||
| century 世紀 | ||
| decade 年代 | ||
| early_ten_days 上旬 | ||
| middle_ten_days 中旬 | ||
| late_ten_days 下旬 |
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 |
|---|---|---|
|
|
@@ -12,4 +12,4 @@ | |
| 木曜日 | ||
| 金曜日 | ||
| 土曜日 | ||
| 日曜日 | ||
| 日曜日 | ||
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/ja/data/electronic/__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 & AFFILIATES. 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. |
2 changes: 2 additions & 0 deletions
2
nemo_text_processing/text_normalization/ja/data/electronic/card_cues.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 @@ | ||
| カード末尾 | ||
| カード番号 |
1 change: 1 addition & 0 deletions
1
nemo_text_processing/text_normalization/ja/data/electronic/card_digit_count_prefix.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 @@ | ||
| カード下 |
1 change: 1 addition & 0 deletions
1
nemo_text_processing/text_normalization/ja/data/electronic/card_digit_count_suffix.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 @@ | ||
| 桁 |
6 changes: 6 additions & 0 deletions
6
nemo_text_processing/text_normalization/ja/data/electronic/file_extensions.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,6 @@ | ||
| .jpg ドット jpg | ||
| .JPG ドット JPG | ||
| .png ドット png | ||
| .PNG ドット PNG | ||
| .pdf ドット pdf | ||
| .PDF ドット PDF |
2 changes: 2 additions & 0 deletions
2
nemo_text_processing/text_normalization/ja/data/electronic/protocol.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 @@ | ||
| http | ||
| https |
1 change: 1 addition & 0 deletions
1
nemo_text_processing/text_normalization/ja/data/electronic/special_digit_runs.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 @@ | ||
| 01 ゼロイチ |
5 changes: 5 additions & 0 deletions
5
nemo_text_processing/text_normalization/ja/data/electronic/symbol.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,5 @@ | ||
| @ アット | ||
| . ドット | ||
| - ハイフン | ||
| / スラッシュ | ||
| : コロン |
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/ja/data/fraction/__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 & AFFILIATES. 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. |
4 changes: 4 additions & 0 deletions
4
nemo_text_processing/text_normalization/ja/data/fraction/marker.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,4 @@ | ||
| fraction 分の | ||
| root_written √ | ||
| root_spoken ルート | ||
| mixed と |
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/ja/data/latin/__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 & AFFILIATES. 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. |
26 changes: 26 additions & 0 deletions
26
nemo_text_processing/text_normalization/ja/data/latin/letters.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,26 @@ | ||
| A エー | ||
| B ビー | ||
| C シー | ||
| D ディー | ||
| E イー | ||
| F エフ | ||
| G ジー | ||
| H エイチ | ||
| I アイ | ||
| J ジェー | ||
| K ケー | ||
| L エル | ||
| M エム | ||
| N エヌ | ||
| O オー | ||
| P ピー | ||
| Q キュー | ||
| R アール | ||
| S エス | ||
| T ティー | ||
| U ユー | ||
| V ブイ | ||
| W ダブリュー | ||
| X エックス | ||
| Y ワイ | ||
| Z ゼット | ||
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/ja/data/measure/__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 & AFFILIATES. 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. |
1 change: 1 addition & 0 deletions
1
nemo_text_processing/text_normalization/ja/data/measure/per_marker.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 @@ | ||
| 毎 |
33 changes: 33 additions & 0 deletions
33
nemo_text_processing/text_normalization/ja/data/measure/per_unit.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,33 @@ | ||
| h 時 | ||
| h 時 | ||
| hour 時 | ||
| hours 時 | ||
| s 秒 | ||
| s 秒 | ||
| sec 秒 | ||
| second 秒 | ||
| seconds 秒 | ||
| min 分 | ||
| min 分 | ||
| minute 分 | ||
| minutes 分 | ||
| kg キロ | ||
| kg キロ | ||
| g グラム | ||
| g グラム | ||
| m メートル | ||
| m メートル | ||
| km キロ | ||
| km キロ | ||
| cm センチメートル | ||
| cm センチメートル | ||
| mm ミリメートル | ||
| mm ミリメートル | ||
| L リットル | ||
| L リットル | ||
| l リットル | ||
| l リットル | ||
| ml ミリリットル | ||
| mL ミリリットル | ||
| ml ミリリットル | ||
| mL ミリリットル |
4 changes: 4 additions & 0 deletions
4
nemo_text_processing/text_normalization/ja/data/measure/rate_numerator.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,4 @@ | ||
| km キロ | ||
| km キロ | ||
| m メートル | ||
| m メートル |
2 changes: 2 additions & 0 deletions
2
nemo_text_processing/text_normalization/ja/data/measure/speed.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 @@ | ||
| キロ 時 時速 | ||
| メートル 秒 秒速 |
79 changes: 79 additions & 0 deletions
79
nemo_text_processing/text_normalization/ja/data/measure/unit.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,79 @@ | ||
| kg キロ | ||
| kg キロ | ||
| キロ キロ | ||
| キログラム キログラム | ||
| g グラム | ||
| g グラム | ||
| グラム グラム | ||
| mg ミリグラム | ||
| mg ミリグラム | ||
| ミリグラム ミリグラム | ||
| μg マイクログラム | ||
| µg マイクログラム | ||
| マイクログラム マイクログラム | ||
| km キロ | ||
| km キロ | ||
| キロメートル キロ | ||
| m メートル | ||
| m メートル | ||
| メートル メートル | ||
| cm センチ | ||
| cm センチ | ||
| センチ センチ | ||
| センチメートル センチメートル | ||
| mm ミリメートル | ||
| mm ミリメートル | ||
| ミリメートル ミリメートル | ||
| m2 平方メートル | ||
| m² 平方メートル | ||
| m2 平方メートル | ||
| m² 平方メートル | ||
| 平方メートル 平方メートル | ||
| cm2 平方センチメートル | ||
| cm² 平方センチメートル | ||
| 平方センチメートル 平方センチメートル | ||
| L リットル | ||
| l リットル | ||
| L リットル | ||
| l リットル | ||
| リットル リットル | ||
| mL ミリリットル | ||
| ml ミリリットル | ||
| mL ミリリットル | ||
| ml ミリリットル | ||
| ミリリットル ミリリットル | ||
| % パーセント | ||
| % パーセント | ||
| パーセント パーセント | ||
| ° 度 | ||
| º 度 | ||
| 度 度 | ||
| °C 度 | ||
| ℃ 度 | ||
| ºC 度 | ||
| °F 度エフ | ||
| ℉ 度エフ | ||
| W ワット | ||
| w ワット | ||
| ワット ワット | ||
| kW キロワット | ||
| kw キロワット | ||
| キロワット キロワット | ||
| V ボルト | ||
| v ボルト | ||
| ボルト ボルト | ||
| Hz ヘルツ | ||
| hz ヘルツ | ||
| ヘルツ ヘルツ | ||
| kHz キロヘルツ | ||
| khz キロヘルツ | ||
| MHz メガヘルツ | ||
| mhz メガヘルツ | ||
| GHz ギガヘルツ | ||
| ghz ギガヘルツ | ||
| GB ギガバイト | ||
| gb ギガバイト | ||
| ギガバイト ギガバイト | ||
| MB メガバイト | ||
| mb メガバイト | ||
| メガバイト メガバイト |
13 changes: 13 additions & 0 deletions
13
nemo_text_processing/text_normalization/ja/data/money/__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. | ||
|
folivoramanh marked this conversation as resolved.
|
||
| # | ||
| # 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. | ||
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.
Uh oh!
There was an error while loading. Please reload this page.