Update semi-text-c.py
Browse files- semi-text-c.py +1 -1
semi-text-c.py
CHANGED
@@ -70,7 +70,7 @@ class semiTextc(datasets.GeneratorBasedBuilder):
|
|
70 |
file = json.load(f)
|
71 |
for i in range(len(file)):
|
72 |
yield i, {
|
73 |
-
"content": file[i]
|
74 |
}
|
75 |
elif split in ['target']:
|
76 |
with open(path_file, "r") as f:
|
|
|
70 |
file = json.load(f)
|
71 |
for i in range(len(file)):
|
72 |
yield i, {
|
73 |
+
"content": json.dumps(file[i])
|
74 |
}
|
75 |
elif split in ['target']:
|
76 |
with open(path_file, "r") as f:
|