SocialGrep
commited on
Commit
·
dd2d9cb
1
Parent(s):
93e25d7
Update the-reddit-dataset-dataset.py
Browse files
the-reddit-dataset-dataset.py
CHANGED
@@ -50,7 +50,7 @@ year={{2022}}
|
|
50 |
"""
|
51 |
|
52 |
|
53 |
-
class
|
54 |
VERSION = datasets.Version("1.0.0")
|
55 |
|
56 |
# This is an example of a dataset with multiple configurations.
|
@@ -176,3 +176,7 @@ class FiveYearsOfAAPLOnReddit(datasets.GeneratorBasedBuilder):
|
|
176 |
key = f"t1_{row['id']}"
|
177 |
yield key, row
|
178 |
|
|
|
|
|
|
|
|
|
|
50 |
"""
|
51 |
|
52 |
|
53 |
+
class theredditdatasetdataset(datasets.GeneratorBasedBuilder):
|
54 |
VERSION = datasets.Version("1.0.0")
|
55 |
|
56 |
# This is an example of a dataset with multiple configurations.
|
|
|
176 |
key = f"t1_{row['id']}"
|
177 |
yield key, row
|
178 |
|
179 |
+
|
180 |
+
if __name__ == "__main__":
|
181 |
+
print("Please use the HuggingFace dataset library, or")
|
182 |
+
print("download from https://socialgrep.com/datasets.")
|