Update labels.py
Browse files
labels.py
CHANGED
|
@@ -96,7 +96,7 @@ class AGNews(datasets.GeneratorBasedBuilder):
|
|
| 96 |
for i, row in enumerate(rows):
|
| 97 |
yield i, {
|
| 98 |
"id": i,
|
| 99 |
-
"topic": int(row[
|
| 100 |
"question_title": row[1],
|
| 101 |
"question_content": row[2],
|
| 102 |
"best_answer": row[3],
|
|
|
|
| 96 |
for i, row in enumerate(rows):
|
| 97 |
yield i, {
|
| 98 |
"id": i,
|
| 99 |
+
"topic": int(row[1]) - 1,
|
| 100 |
"question_title": row[1],
|
| 101 |
"question_content": row[2],
|
| 102 |
"best_answer": row[3],
|