Datasets:
Commit
•
75ea71d
1
Parent(s):
cc12d95
wrap posix path in string
Browse files- europeana_newspapers.py +1 -2
europeana_newspapers.py
CHANGED
@@ -94,7 +94,7 @@ class EuropeanaNewspapers(datasets.GeneratorBasedBuilder):
|
|
94 |
parquet_files = list(Path(".").rglob("*.parquet"))
|
95 |
languages = self.config.languages
|
96 |
data_files = [
|
97 |
-
parquet_file
|
98 |
for parquet_file in parquet_files
|
99 |
if parquet_file.stem.split("_")[0] in languages
|
100 |
]
|
@@ -118,7 +118,6 @@ class EuropeanaNewspapers(datasets.GeneratorBasedBuilder):
|
|
118 |
pa_table = pa.Table.from_batches([record_batch])
|
119 |
rows = pa_table.to_pylist()
|
120 |
for row in rows:
|
121 |
-
|
122 |
row.pop("multi_language")
|
123 |
yield key, row
|
124 |
key += 1
|
|
|
94 |
parquet_files = list(Path(".").rglob("*.parquet"))
|
95 |
languages = self.config.languages
|
96 |
data_files = [
|
97 |
+
str(parquet_file)
|
98 |
for parquet_file in parquet_files
|
99 |
if parquet_file.stem.split("_")[0] in languages
|
100 |
]
|
|
|
118 |
pa_table = pa.Table.from_batches([record_batch])
|
119 |
rows = pa_table.to_pylist()
|
120 |
for row in rows:
|
|
|
121 |
row.pop("multi_language")
|
122 |
yield key, row
|
123 |
key += 1
|