Update HuffPost.py
Browse files- HuffPost.py +1 -1
HuffPost.py
CHANGED
@@ -125,6 +125,6 @@ class HuffPost(datasets.GeneratorBasedBuilder):
|
|
125 |
with open(filepath, encoding="utf-8") as f:
|
126 |
for key, row in enumerate(f):
|
127 |
data = json.loads(row)
|
128 |
-
|
129 |
# Yields examples as (key, example) tuples
|
130 |
yield key, data
|
|
|
125 |
with open(filepath, encoding="utf-8") as f:
|
126 |
for key, row in enumerate(f):
|
127 |
data = json.loads(row)
|
128 |
+
data['label'] = category
|
129 |
# Yields examples as (key, example) tuples
|
130 |
yield key, data
|