Datasets:
anjalyjayakrishnan
commited on
Commit
·
558c805
1
Parent(s):
f0c86d9
error fix
Browse files
test.py
CHANGED
@@ -143,15 +143,13 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
143 |
|
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":
|
155 |
-
"path":
|
156 |
}
|
157 |
key+=1
|
|
|
143 |
|
144 |
|
145 |
def _generate_examples(self, filepath):
|
|
|
146 |
key = 0
|
147 |
with open(filepath) as f:
|
148 |
data_df = pd.read_csv(f,sep=',')
|
|
|
149 |
transcripts = []
|
150 |
for index,row in data_df.iterrows():
|
151 |
yield key, {
|
152 |
+
"sentence": row["sentence"],
|
153 |
+
"path": row["path"],
|
154 |
}
|
155 |
key+=1
|