EricR401S commited on
Commit
2b1b4cb
·
1 Parent(s): a2911d5

testing generating examples

Browse files
Files changed (1) hide show
  1. Pill_Ideologies-Post_Titles.py +3 -1
Pill_Ideologies-Post_Titles.py CHANGED
@@ -197,9 +197,10 @@ class SubRedditPosts(datasets.GeneratorBasedBuilder):
197
  print("inside generate examples")
198
  print(split, "is the split")
199
  print(filepath.shape, "is the filepath")
 
200
  for key, row in filepath.iterrows():
201
  # print(row, "is the row")
202
- print(key, "is the key")
203
  # print(row, "is the row")
204
  if self.config.name == "first_domain":
205
  yield key, {
@@ -212,6 +213,7 @@ class SubRedditPosts(datasets.GeneratorBasedBuilder):
212
  "author": row.get("author"),
213
  "date": row.get("date"),
214
  }
 
215
 
216
  else:
217
  yield key, {
 
197
  print("inside generate examples")
198
  print(split, "is the split")
199
  print(filepath.shape, "is the filepath")
200
+ i = 0
201
  for key, row in filepath.iterrows():
202
  # print(row, "is the row")
203
+ print(key, "is the key", i, "is the index")
204
  # print(row, "is the row")
205
  if self.config.name == "first_domain":
206
  yield key, {
 
213
  "author": row.get("author"),
214
  "date": row.get("date"),
215
  }
216
+ i += 1
217
 
218
  else:
219
  yield key, {