change wrong index
Browse files
summarization_optimization.py
CHANGED
@@ -62,11 +62,11 @@ class SummarizationOptimization(datasets.GeneratorBasedBuilder):
|
|
62 |
idx = 0
|
63 |
for row in reader:
|
64 |
features = {
|
65 |
-
"doc_id" : row[
|
66 |
-
"title" : row[
|
67 |
-
"text" : row[
|
68 |
-
"doc_type" : row[
|
69 |
-
"file" : row[
|
70 |
}
|
71 |
|
72 |
yield idx, features
|
|
|
62 |
idx = 0
|
63 |
for row in reader:
|
64 |
features = {
|
65 |
+
"doc_id" : row[1],
|
66 |
+
"title" : row[2],
|
67 |
+
"text" : row[3],
|
68 |
+
"doc_type" : row[4],
|
69 |
+
"file" : row[5],
|
70 |
}
|
71 |
|
72 |
yield idx, features
|