Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nemo_text_processing/text_normalization/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def __init__(
elif lang == 'hu':
from nemo_text_processing.text_normalization.hu.taggers.tokenize_and_classify import ClassifyFst
from nemo_text_processing.text_normalization.hu.verbalizers.verbalize_final import VerbalizeFinalFst
elif lang == 'pl':
from nemo_text_processing.text_normalization.pl.taggers.tokenize_and_classify import ClassifyFst
from nemo_text_processing.text_normalization.pl.verbalizers.verbalize_final import VerbalizeFinalFst
elif lang == 'zh':
from nemo_text_processing.text_normalization.zh.taggers.tokenize_and_classify import ClassifyFst
from nemo_text_processing.text_normalization.zh.verbalizers.verbalize_final import VerbalizeFinalFst
Expand Down
13 changes: 13 additions & 0 deletions nemo_text_processing/text_normalization/pl/__init__.py
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.
13 changes: 13 additions & 0 deletions nemo_text_processing/text_normalization/pl/data/__init__.py
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
s-ka spółka noun_f_ka.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tzw. tak zwany
ur. urodzony
ang. angielski
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
r. rok noun_mi_rok.tsv
13 changes: 13 additions & 0 deletions nemo_text_processing/text_normalization/pl/data/dates/__init__.py
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sty stycznia
lut lutego
mar marca
kwi kwietnia
maj maja
cze czerwca
lip lipca
sie sierpnia
wrz września
paź października
lis listopada
gru grudnia
12 changes: 12 additions & 0 deletions nemo_text_processing/text_normalization/pl/data/dates/months.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1 stycznia
2 lutego
3 marca
4 kwietnia
5 maja
6 czerwca
7 lipca
8 sierpnia
9 września
10 października
11 listopada
12 grudnia
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
I stycznia
II lutego
III marca
IV kwietnia
V maja
VI czerwca
VII lipca
VIII sierpnia
IX września
X października
XI listopada
XII grudnia
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1 dziesiąty
2 setny
3 tysięczny
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
named i
digits przecinek
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom a
sg_gen y
sg_dat zie
sg_acc ę
sg_ins ą
sg_loc zie
sg_voc o
pl_nom y
pl_gen <eps>
pl_dat om
pl_acc y
pl_ins ami
pl_loc ach
pl_voc y
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom ga
sg_gen gi
sg_dat dze
sg_acc gę
sg_ins gą
sg_loc dze
sg_voc go
pl_nom gi
pl_gen g
pl_dat gom
pl_acc gi
pl_ins gami
pl_loc gach
pl_voc gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom ia
sg_gen ii
sg_dat ii
sg_acc ię
sg_ins ią
sg_loc ii
sg_voc io
pl_nom ie
pl_gen ii
pl_dat iom
pl_acc ie
pl_ins iami
pl_loc iach
pl_voc ie
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom ka
sg_gen ki
sg_dat ce
sg_acc kę
sg_ins ką
sg_loc ce
sg_voc ko
pl_nom ki
pl_gen ek
pl_dat kom
pl_acc ki
pl_ins kami
pl_loc kach
pl_voc ki
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom la
sg_gen li
sg_dat li
sg_acc lę
sg_ins lą
sg_loc li
sg_voc lo
pl_nom le
pl_gen l
pl_dat lom
pl_acc li
pl_ins lami
pl_loc lach
pl_voc le
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom na
sg_gen ny
sg_dat nie
sg_acc nę
sg_ins ną
sg_loc nie
sg_voc no
pl_nom ny
pl_gen n
pl_dat nom
pl_acc ny
pl_ins nami
pl_loc nach
pl_voc ny
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom ta
sg_gen ty
sg_dat cie
sg_acc tę
sg_ins tą
sg_loc cie
sg_voc to
pl_nom ty
pl_gen t
pl_dat tom
pl_acc ty
pl_ins tami
pl_loc tach
pl_voc ty
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom <eps>
sg_gen a
sg_dat owi
sg_acc <eps>
sg_ins em
sg_loc u
sg_voc u
pl_nom e
pl_gen ów
pl_dat om
pl_acc e
pl_ins ami
pl_loc ach
pl_voc e
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom <eps>
sg_gen a
sg_dat owi
sg_acc <eps>
sg_ins iem
sg_loc u
sg_voc u
pl_nom i
pl_gen ów
pl_dat om
pl_acc i
pl_ins ami
pl_loc ach
pl_voc i
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom m
sg_gen ma
sg_dat mowi
sg_acc m
sg_ins mem
sg_loc mie
sg_voc mie
pl_nom my
pl_gen mów
pl_dat mom
pl_acc my
pl_ins mami
pl_loc mach
pl_voc my
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom n
sg_gen na
sg_dat nowi
sg_acc n
sg_ins nem
sg_loc nie
sg_voc nie
pl_nom ny
pl_gen nów
pl_dat nom
pl_acc ny
pl_ins nami
pl_loc nach
pl_voc ny
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom r
sg_gen ra
sg_dat rowi
sg_acc r
sg_ins rem
sg_loc rze
sg_voc rze
pl_nom ry
pl_gen rów
pl_dat rom
pl_acc ry
pl_ins rami
pl_loc rach
pl_voc ry
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom <eps>
sg_gen u
sg_dat owi
sg_acc <eps>
sg_ins iem
sg_loc u
sg_voc u
pl_nom i
pl_gen ów
pl_dat om
pl_acc i
pl_ins ami
pl_loc ach
pl_voc i
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom t
sg_gen ta
sg_dat towi
sg_acc t
sg_ins tem
sg_loc cie
sg_voc cie
pl_nom ty
pl_gen tów
pl_dat tom
pl_acc ty
pl_ins tami
pl_loc tach
pl_voc ty
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom <eps>
sg_gen a
sg_dat owi
sg_acc <eps>
sg_ins em
sg_loc ze
sg_voc ze
pl_nom y
pl_gen ów
pl_dat om
pl_acc y
pl_ins ami
pl_loc ach
pl_voc y
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom <eps>
sg_gen a
sg_dat owi
sg_acc a
sg_ins em
sg_loc zie
sg_voc zie
pl_nom owie
pl_gen ów
pl_dat om
pl_acc ów
pl_ins ami
pl_loc ach
pl_voc owie
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sg_nom ek
sg_gen ka
sg_dat kowi
sg_acc ka
sg_ins kiem
sg_loc ku
sg_voc ku
pl_nom kowie
pl_gen ków
pl_dat kom
pl_acc ków
pl_ins kami
pl_loc kach
pl_voc kowie
Loading