anjalyjayakrishnan commited on
Commit
f0c86d9
·
1 Parent(s): 28be160
Files changed (1) hide show
  1. test.py +8 -4
test.py CHANGED
@@ -144,10 +144,14 @@ class Test(datasets.GeneratorBasedBuilder):
144
 
145
  def _generate_examples(self, filepath):
146
  print("**********", filepath)
 
147
  with open(filepath) as f:
148
  data_df = pd.read_csv(f,sep=',')
149
  print(data_df.columns)
150
- yield data_df["path"], {
151
- "sentence": data_df["sentence"],
152
- "path": data_df["path"],
153
- }
 
 
 
 
144
 
145
  def _generate_examples(self, filepath):
146
  print("**********", filepath)
147
+ key = 0
148
  with open(filepath) as f:
149
  data_df = pd.read_csv(f,sep=',')
150
  print(data_df.columns)
151
+ transcripts = []
152
+ for index,row in data_df.iterrows():
153
+ yield key, {
154
+ "sentence": data_df["sentence"],
155
+ "path": data_df["path"],
156
+ }
157
+ key+=1