nastyboget
commited on
Commit
•
d41bf94
1
Parent(s):
ef8f523
Update stackmix_cyrillic.py
Browse files- stackmix_cyrillic.py +4 -4
stackmix_cyrillic.py
CHANGED
@@ -13,9 +13,9 @@ class StackmixCyrillic(datasets.GeneratorBasedBuilder):
|
|
13 |
features=datasets.Features(
|
14 |
{
|
15 |
"image": datasets.Image(),
|
|
|
16 |
"path": datasets.Value("string"),
|
17 |
-
"name": datasets.Value("string")
|
18 |
-
"text": datasets.Value("string")
|
19 |
}
|
20 |
)
|
21 |
)
|
@@ -43,8 +43,8 @@ class StackmixCyrillic(datasets.GeneratorBasedBuilder):
|
|
43 |
|
44 |
example = {
|
45 |
"image": image_path,
|
|
|
46 |
"path": image_path,
|
47 |
-
"name": image_name
|
48 |
-
"text": df["text"][image_name]
|
49 |
}
|
50 |
yield image_name, example
|
|
|
13 |
features=datasets.Features(
|
14 |
{
|
15 |
"image": datasets.Image(),
|
16 |
+
"text": datasets.Value("string"),
|
17 |
"path": datasets.Value("string"),
|
18 |
+
"name": datasets.Value("string")
|
|
|
19 |
}
|
20 |
)
|
21 |
)
|
|
|
43 |
|
44 |
example = {
|
45 |
"image": image_path,
|
46 |
+
"text": df["text"][image_name],
|
47 |
"path": image_path,
|
48 |
+
"name": image_name
|
|
|
49 |
}
|
50 |
yield image_name, example
|