Update feed.py
Browse files
feed.py
CHANGED
@@ -119,7 +119,7 @@ class Guess(datasets.GeneratorBasedBuilder):
|
|
119 |
"others": 3
|
120 |
}
|
121 |
|
122 |
-
|
123 |
|
124 |
for idx, line in enumerate(lines):
|
125 |
json_object = ast.literal_eval(line)
|
@@ -141,7 +141,7 @@ class Guess(datasets.GeneratorBasedBuilder):
|
|
141 |
"top_en": f'Comment about '
|
142 |
}
|
143 |
|
144 |
-
for _cl in
|
145 |
if type[:3] == 'sen':
|
146 |
_classes.append(_cl)
|
147 |
else:
|
|
|
119 |
"others": 3
|
120 |
}
|
121 |
|
122 |
+
TEXT_ = _TEXT[type]
|
123 |
|
124 |
for idx, line in enumerate(lines):
|
125 |
json_object = ast.literal_eval(line)
|
|
|
141 |
"top_en": f'Comment about '
|
142 |
}
|
143 |
|
144 |
+
for _cl in TEXT_:
|
145 |
if type[:3] == 'sen':
|
146 |
_classes.append(_cl)
|
147 |
else:
|