-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add measures file Signed-off-by: Mariana Graterol Fuenmayor <[email protected]> * update whitelist data Signed-off-by: Mariana Graterol Fuenmayor <[email protected]> * add fr tn tests Signed-off-by: Mariana Graterol Fuenmayor <[email protected]> --------- Signed-off-by: Mariana Graterol Fuenmayor <[email protected]>
- Loading branch information
Showing
9 changed files
with
128 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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/fr/data/measures/__init__.py
This file contains 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) 2023, 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. |
17 changes: 17 additions & 0 deletions
17
nemo_text_processing/text_normalization/fr/data/measures/measurements.tsv
This file contains 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,17 @@ | ||
m mètres | ||
m² mètres carrés | ||
m³ mètres cubes | ||
s secondes | ||
min minutes | ||
h heures | ||
° degrés | ||
°C degrés celsius | ||
g grammes | ||
l litres | ||
kg kilos | ||
'' pouce | ||
lb livres | ||
% pour cent | ||
‰ pour mille | ||
km/h kilomètres heure | ||
m/h mètres à l’heure |
13 changes: 12 additions & 1 deletion
13
nemo_text_processing/text_normalization/fr/data/whitelist.tsv
This file contains 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 |
---|---|---|
@@ -1 +1,12 @@ | ||
bonjour | ||
Mᵐᵉ madame | ||
Mᵐᵉˢ mesdames | ||
Mˡˡᵉ mademoiselle | ||
Mˡˡᵉˢ mademoiselles | ||
Dʳ docteur | ||
Dʳˢ docteurs | ||
Dʳᵉ docteure | ||
Dʳᵉˢ docteures | ||
apr. J.-C. après jésus-christ | ||
av. J.-C. avant Jésus-Christ | ||
le hon. l’honorable | ||
le très hon. le très hononrable |
6 changes: 6 additions & 0 deletions
6
tests/nemo_text_processing/fr/data_text_normalization/test_cases_whitelist.txt
This file contains 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 @@ | ||
Dʳ~docteur | ||
Dʳᵉˢ~docteures | ||
Mᵐᵉ~madame | ||
Mᵐᵉˢ~mesdames | ||
Mˡˡᵉ~mademoiselle | ||
Mˡˡᵉˢ~mademoiselles |
49 changes: 49 additions & 0 deletions
49
tests/nemo_text_processing/fr/data_text_normalization/test_cases_word.txt
This file contains 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,49 @@ | ||
~ | ||
yahoo!~yahoo! | ||
20 !~vingt ! | ||
x~x | ||
—~— | ||
aaa~aaa | ||
aabach~aabach | ||
aabenraa~aabenraa | ||
aabye~aabye | ||
aaccessed~aaccessed | ||
aach~aach | ||
aachen's~aachen's | ||
aadri~aadri | ||
aafia~aafia | ||
aagaard~aagaard | ||
aagadu~aagadu | ||
aagard~aagard | ||
aagathadi~aagathadi | ||
aaghart's~aaghart's | ||
aagnes~aagnes | ||
aagomoni~aagomoni | ||
aagon~aagon | ||
aagoo~aagoo | ||
aagot~aagot | ||
aahar~aahar | ||
aahh~aahh | ||
aahperd~aahperd | ||
aaibinterstate~aaibinterstate | ||
aajab~aajab | ||
aakasa~aakasa | ||
aakervik~aakervik | ||
aakirkeby~aakirkeby | ||
aalam~aalam | ||
aalbaek~aalbaek | ||
aaldiu~aaldiu | ||
aalem~aalem | ||
a'ali~a'ali | ||
aalilaassamthey~aalilaassamthey | ||
aalin~aalin | ||
aaliyan~aaliyan | ||
aaliyan's~aaliyan's | ||
aamadu~aamadu | ||
aamara~aamara | ||
aambala~aambala | ||
aamera~aamera | ||
aamer's~aamer's | ||
aamina~aamina | ||
aaminah~aaminah | ||
aamjiwnaang~aamjiwnaang |
This file contains 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 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 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