futin commited on
Commit
933b31e
1 Parent(s): 0e6b96c

Update feed.py

Browse files
Files changed (1) hide show
  1. feed.py +2 -2
feed.py CHANGED
@@ -119,7 +119,7 @@ class Guess(datasets.GeneratorBasedBuilder):
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,7 +141,7 @@ class Guess(datasets.GeneratorBasedBuilder):
141
  "top_en": f'Comment about '
142
  }
143
 
144
- for _cl in _TEXT:
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: