Commit
·
4a906f0
1
Parent(s):
a8d2a2c
Update the-antiwork-subreddit-dataset.py
Browse files
the-antiwork-subreddit-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.
|
@@ -175,3 +175,8 @@ class FiveYearsOfAAPLOnReddit(datasets.GeneratorBasedBuilder):
|
|
175 |
if row["type"] == "comment":
|
176 |
key = f"t1_{row['id']}"
|
177 |
yield key, row
|
|
|
|
|
|
|
|
|
|
|
|
50 |
"""
|
51 |
|
52 |
|
53 |
+
class theantiworksubredditdataset(datasets.GeneratorBasedBuilder):
|
54 |
VERSION = datasets.Version("1.0.0")
|
55 |
|
56 |
# This is an example of a dataset with multiple configurations.
|
|
|
175 |
if row["type"] == "comment":
|
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.")
|