robo-lib 0.0.7__py3-none-any.whl → 0.0.9__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.
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: robo_lib
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.9
|
4
4
|
Summary: A package to create, configure, and train transformer models.
|
5
5
|
Project-URL: Homepage, https://github.com/hamburgerfish/robo_pack
|
6
6
|
Project-URL: Issues, https://github.com/hamburgerfish/robo_pack/issues
|
@@ -48,7 +48,7 @@ encoder_tok = rl.TokenizerConstructor(tokenizer_type="WordLevel")
|
|
48
48
|
encoder_tok.train("english_data.txt")
|
49
49
|
|
50
50
|
decoder_tok = rl.TokenizerConstructor(tokenizer_type="WordLevel")
|
51
|
-
|
51
|
+
decoder_tok.train("french_data.txt")
|
52
52
|
|
53
53
|
rl.save_component(encoder_tok, "tokenizers/encoder_tok.pkl")
|
54
54
|
rl.save_component(decoder_tok, "tokenizers/decoder_tok.pkl")
|
@@ -71,7 +71,7 @@ with open("french_data.txt", "r") as file:
|
|
71
71
|
|
72
72
|
# splitting lists into train and validation sets
|
73
73
|
split = 0.9
|
74
|
-
n = int(len(english_list) *
|
74
|
+
n = int(len(english_list) * split)
|
75
75
|
english_train = english_list[:n]
|
76
76
|
french_train = french_list[:n]
|
77
77
|
english_val = english_list[n:]
|
@@ -187,7 +187,7 @@ with open("shakespeare_dialogues.txt", "r") as file:
|
|
187
187
|
|
188
188
|
# splitting string into train and validation sets
|
189
189
|
split = 0.9
|
190
|
-
n = int(len(dialogues_str) *
|
190
|
+
n = int(len(dialogues_str) * split)
|
191
191
|
train_data = dialogues_str[:n]
|
192
192
|
val_data = dialogues_str[n:]
|
193
193
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
robo_lib/__init__.py,sha256=iVOAsANj0lScVW9KKMxCULYmpp0cv4sv1k3sHjBSlE0,1012
|
2
|
+
robo_lib/components.py,sha256=OjusjkSlMlAsTEq1kSqixKXG9sBw8Re8hsXTEy_bJ48,42315
|
3
|
+
robo_lib-0.0.9.dist-info/METADATA,sha256=53u9_T2FI2a3iktdl4f9atPhSd8zqHrUsQaVbTXvWMU,9628
|
4
|
+
robo_lib-0.0.9.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
5
|
+
robo_lib-0.0.9.dist-info/licenses/LICENSE,sha256=4XzkkpFqPzH0GH3zxOqRTqc7xUKSEe7dWPOuJYW95ac,1089
|
6
|
+
robo_lib-0.0.9.dist-info/RECORD,,
|
robo_lib-0.0.7.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
robo_lib/__init__.py,sha256=iVOAsANj0lScVW9KKMxCULYmpp0cv4sv1k3sHjBSlE0,1012
|
2
|
-
robo_lib/components.py,sha256=OjusjkSlMlAsTEq1kSqixKXG9sBw8Re8hsXTEy_bJ48,42315
|
3
|
-
robo_lib-0.0.7.dist-info/METADATA,sha256=LMBhPV0XW8VPNSCpbj4v9KR0emICpCjvXvMkR7fkGpg,9624
|
4
|
-
robo_lib-0.0.7.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
5
|
-
robo_lib-0.0.7.dist-info/licenses/LICENSE,sha256=4XzkkpFqPzH0GH3zxOqRTqc7xUKSEe7dWPOuJYW95ac,1089
|
6
|
-
robo_lib-0.0.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|