phusroyal commited on
Commit
3296ae3
1 Parent(s): 0824cbf

Update ViHOS.py

Browse files
Files changed (1) hide show
  1. ViHOS.py +3 -3
ViHOS.py CHANGED
@@ -60,14 +60,14 @@ class ViHOS(datasets.GeneratorBasedBuilder):
60
  data = pd.read_csv(filepath, names=colnames, header=None, sep=",", on_bad_lines='skip')
61
 
62
  for i in range(len(data)):
63
- id_ = data.loc[i, 'id']
64
  content = str(data.loc[i, 'Content'])
65
  span_ids = str(data.loc[i, 'Span ids'])
66
  if span_ids is None:
67
  span_ids = ''
68
 
69
- yield id_, {
70
- "id": id_,
71
  "content": content,
72
  "span_ids": span_ids,
73
  }
 
60
  data = pd.read_csv(filepath, names=colnames, header=None, sep=",", on_bad_lines='skip')
61
 
62
  for i in range(len(data)):
63
+ # id_ = data.loc[i, 'id']
64
  content = str(data.loc[i, 'Content'])
65
  span_ids = str(data.loc[i, 'Span ids'])
66
  if span_ids is None:
67
  span_ids = ''
68
 
69
+ yield i, {
70
+ # "id": id_,
71
  "content": content,
72
  "span_ids": span_ids,
73
  }