khalidalt commited on
Commit
6f47cdf
1 Parent(s): a3e1bbb

Update HuffPost.py

Browse files
Files changed (1) hide show
  1. 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
- data['label'] = category
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'] = data['category']
129
  # Yields examples as (key, example) tuples
130
  yield key, data