robo-lib 0.0.6__py3-none-any.whl → 0.0.8__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.8
|
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
|
@@ -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:]
|
@@ -148,7 +148,7 @@ robo.train(
|
|
148
148
|
- In this example, a simple script is created to interact with the user on the command-line, where the user's English input will be translated by the transformer and printed out onto the console in French.
|
149
149
|
|
150
150
|
```python
|
151
|
-
import
|
151
|
+
import robo_lib as rl
|
152
152
|
|
153
153
|
robo = rc.load_component("models/eng_to_fr_robo.pkl")
|
154
154
|
encoder_tok = rl.load_component("tokenizers/encoder_tok.pkl")
|
@@ -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.8.dist-info/METADATA,sha256=WCZbGjm5IfGnLDpuAh5ZmqwMGEFvpeM3E05XlTGjceM,9628
|
4
|
+
robo_lib-0.0.8.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
5
|
+
robo_lib-0.0.8.dist-info/licenses/LICENSE,sha256=4XzkkpFqPzH0GH3zxOqRTqc7xUKSEe7dWPOuJYW95ac,1089
|
6
|
+
robo_lib-0.0.8.dist-info/RECORD,,
|
robo_lib-0.0.6.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.6.dist-info/METADATA,sha256=blIzrA4Pf14_mSmQzYvWYF9WOcVbkwaUf1UmwiYIu7w,9624
|
4
|
-
robo_lib-0.0.6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
5
|
-
robo_lib-0.0.6.dist-info/licenses/LICENSE,sha256=4XzkkpFqPzH0GH3zxOqRTqc7xUKSEe7dWPOuJYW95ac,1089
|
6
|
-
robo_lib-0.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|