Spaces:
Sleeping
Sleeping
smhavens
commited on
Commit
·
febaecf
1
Parent(s):
f4440c5
Switched back to dicts
Browse files
app.py
CHANGED
@@ -84,11 +84,11 @@ def training():
|
|
84 |
# For agility we only 1/2 of our available data
|
85 |
n_examples = dataset["train"].num_rows // 2
|
86 |
# n_remaining = dataset["train"].num_rows - n_examples
|
87 |
-
dataset_clean =
|
88 |
-
dataset_0 =
|
89 |
-
dataset_1 =
|
90 |
-
dataset_2 =
|
91 |
-
dataset_3 =
|
92 |
for i in range(n_examples):
|
93 |
dataset_clean[i] = {}
|
94 |
dataset_clean[i]["text"] = normalize(train_data[i]["text"], lowercase=True, remove_stopwords=True)
|
|
|
84 |
# For agility we only 1/2 of our available data
|
85 |
n_examples = dataset["train"].num_rows // 2
|
86 |
# n_remaining = dataset["train"].num_rows - n_examples
|
87 |
+
dataset_clean = {}
|
88 |
+
dataset_0 = {}
|
89 |
+
dataset_1 = {}
|
90 |
+
dataset_2 = {}
|
91 |
+
dataset_3 = {}
|
92 |
for i in range(n_examples):
|
93 |
dataset_clean[i] = {}
|
94 |
dataset_clean[i]["text"] = normalize(train_data[i]["text"], lowercase=True, remove_stopwords=True)
|