Datasets:
Maurice Weber
commited on
Commit
•
fde171d
1
Parent(s):
e1fc14b
bugfix
Browse files- RedPajama-Data-V2.py +4 -1
RedPajama-Data-V2.py
CHANGED
@@ -241,7 +241,10 @@ class RedPajamaV2(datasets.GeneratorBasedBuilder):
|
|
241 |
|
242 |
def _split_generators_sample(self, dl_manager):
|
243 |
# fetch documents
|
244 |
-
|
|
|
|
|
|
|
245 |
listings = [line.strip() for line in fd]
|
246 |
|
247 |
# fetch documents
|
|
|
241 |
|
242 |
def _split_generators_sample(self, dl_manager):
|
243 |
# fetch documents
|
244 |
+
sample_listings = dl_manager.download_and_extract(
|
245 |
+
"sample/sample_listings.txt"
|
246 |
+
)
|
247 |
+
with open(sample_listings, "r") as fd:
|
248 |
listings = [line.strip() for line in fd]
|
249 |
|
250 |
# fetch documents
|