nastyboget
commited on
Commit
•
29cd2c8
1
Parent(s):
ac6370f
Update synthetic_cyrillic.py
Browse files- synthetic_cyrillic.py +4 -4
synthetic_cyrillic.py
CHANGED
@@ -13,9 +13,9 @@ class SyntheticCyrillic(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 SyntheticCyrillic(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
|