wolof-translate 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wolof_translate/utils/sent_corrections.py +10 -0
- {wolof_translate-0.0.4.dist-info → wolof_translate-0.0.5.dist-info}/METADATA +1 -1
- {wolof_translate-0.0.4.dist-info → wolof_translate-0.0.5.dist-info}/RECORD +5 -5
- {wolof_translate-0.0.4.dist-info → wolof_translate-0.0.5.dist-info}/WHEEL +0 -0
- {wolof_translate-0.0.4.dist-info → wolof_translate-0.0.5.dist-info}/top_level.txt +0 -0
|
@@ -13,6 +13,8 @@ def add_guillemet_space(sentences: Union[list, str]):
|
|
|
13
13
|
|
|
14
14
|
if type(sentences) is str:
|
|
15
15
|
sentences = [sentences]
|
|
16
|
+
elif type(sentences) is float:
|
|
17
|
+
sentences = [str(sentences)]
|
|
16
18
|
|
|
17
19
|
for s in range(len(sentences)):
|
|
18
20
|
|
|
@@ -51,6 +53,8 @@ def delete_guillemet_space(sentences: Union[list, str]):
|
|
|
51
53
|
|
|
52
54
|
if type(sentences) is str:
|
|
53
55
|
sentences = [sentences]
|
|
56
|
+
elif type(sentences) is float:
|
|
57
|
+
sentences = [str(sentences)]
|
|
54
58
|
|
|
55
59
|
for s in range(len(sentences)):
|
|
56
60
|
|
|
@@ -91,6 +95,8 @@ def add_mark_space(
|
|
|
91
95
|
|
|
92
96
|
if type(sentences) is str:
|
|
93
97
|
sentences = [sentences]
|
|
98
|
+
elif type(sentences) is float:
|
|
99
|
+
sentences = [str(sentences)]
|
|
94
100
|
|
|
95
101
|
for s in range(len(sentences)):
|
|
96
102
|
|
|
@@ -123,6 +129,8 @@ def remove_mark_space(sentences: Union[list, str], marks: list = ["'", "-"]):
|
|
|
123
129
|
|
|
124
130
|
if type(sentences) is str:
|
|
125
131
|
sentences = [sentences]
|
|
132
|
+
elif type(sentences) is float:
|
|
133
|
+
sentences = [str(sentences)]
|
|
126
134
|
|
|
127
135
|
for s in range(len(sentences)):
|
|
128
136
|
|
|
@@ -161,6 +169,8 @@ def delete_much_space(sentences: Union[list, str]):
|
|
|
161
169
|
|
|
162
170
|
if type(sentences) is str:
|
|
163
171
|
sentences = [sentences]
|
|
172
|
+
elif type(sentences) is float:
|
|
173
|
+
sentences = [str(sentences)]
|
|
164
174
|
|
|
165
175
|
for i in range(len(sentences)):
|
|
166
176
|
|
|
@@ -34,7 +34,7 @@ wolof_translate/utils/extract_sentences.py,sha256=-PDBmceKUqiTdV9ieezSIITfADAnv_
|
|
|
34
34
|
wolof_translate/utils/recuperate_datasets.py,sha256=4yTNXPOIfTokon0Bke50SdB8MT_Ojmu1aTmYv_K_w64,2644
|
|
35
35
|
wolof_translate/utils/recuperate_datasets_trunc.py,sha256=82T7mHbxruYJUw0L0ZUUoPHxO2Yr65rApakmIhe034M,2500
|
|
36
36
|
wolof_translate/utils/send_model.py,sha256=v_dQJDDpk3ak_DutbhwSqKF8-Q_-Gx9zezZsTot6Onk,797
|
|
37
|
-
wolof_translate/utils/sent_corrections.py,sha256=
|
|
37
|
+
wolof_translate/utils/sent_corrections.py,sha256=BC2AJ1Qq8LTNPIDNJitkaygo4g6a0c_tlikLV-QpVBc,3904
|
|
38
38
|
wolof_translate/utils/sent_transformers.py,sha256=kbbc5H-zPkxSM1uOghGeZa9fCAcm2GwTSuiRHM0asgI,574
|
|
39
39
|
wolof_translate/utils/sent_unification.py,sha256=UD9uZ--NREj5Z462n5hs-UjMPNhUN8Nr_6ZmR2w-B6Y,2104
|
|
40
40
|
wolof_translate/utils/split_with_valid.py,sha256=7-e6EfvPbLpTYrZOXJVYYqm_nV7n6yUYOaWkn8hsJJw,2424
|
|
@@ -43,7 +43,7 @@ wolof_translate/utils/training.py,sha256=5vPVuqHL6_gqLkh4PTxXqW4UvAJBWNWVDDXC9Fk
|
|
|
43
43
|
wolof_translate/utils/trunc_hg_training.py,sha256=mMGrU7Mjr9vYd7eLc8nbFRhRXwSWMKyg35lGf0L6RtQ,6418
|
|
44
44
|
wolof_translate/utils/improvements/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
wolof_translate/utils/improvements/end_marks.py,sha256=scmhMMYguZmrZTPozx1ZovizKrrPfPpMLXbU2-IOdGs,1194
|
|
46
|
-
wolof_translate-0.0.
|
|
47
|
-
wolof_translate-0.0.
|
|
48
|
-
wolof_translate-0.0.
|
|
49
|
-
wolof_translate-0.0.
|
|
46
|
+
wolof_translate-0.0.5.dist-info/METADATA,sha256=kQLynATL140xAtQaN8Q9nziqKEx9TjT7mx_oD_9XrN8,818
|
|
47
|
+
wolof_translate-0.0.5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
48
|
+
wolof_translate-0.0.5.dist-info/top_level.txt,sha256=YG-kBnOwUZyQ7SofNvMxNYjzCreH2PVcW2UaEg1-Reg,16
|
|
49
|
+
wolof_translate-0.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|