phusroyal commited on
Commit
c9abf2e
·
1 Parent(s): 106245e

Update ViHOS.py

Browse files
Files changed (1) hide show
  1. ViHOS.py +10 -9
ViHOS.py CHANGED
@@ -67,16 +67,17 @@ class ViHOS(datasets.GeneratorBasedBuilder):
67
 
68
  data = pd.read_csv(filepath, names=colnames, header=None, sep=",", on_bad_lines='skip')
69
 
70
- for i in range(len(data)):
71
- id_ = data.loc[i, 'id']
72
- content = data.loc[i, 'Content']
73
- span_ids = data.loc[i, 'Span ids']
74
 
75
- yield id_, {
76
- "id": id_,
77
- "content": content,
78
- "span_ids": span_ids,
79
- }
 
80
 
81
  # data = pd.read_csv(filepath, colnames=colnames, header = None)
82
  # yield data.iloc[:, 0], dataframe.iloc[:, 1], dataframe.iloc[:, 2]
 
67
 
68
  data = pd.read_csv(filepath, names=colnames, header=None, sep=",", on_bad_lines='skip')
69
 
70
+ # for i in range(len(data)):
71
+ # id_ = data.loc[i, 'id']
72
+ # content = data.loc[i, 'Content']
73
+ # span_ids = data.loc[i, 'Span ids']
74
 
75
+ # yield id_, {
76
+ # "id": id_,
77
+ # "content": content,
78
+ # "span_ids": span_ids,
79
+ # }
80
+ yield data
81
 
82
  # data = pd.read_csv(filepath, colnames=colnames, header = None)
83
  # yield data.iloc[:, 0], dataframe.iloc[:, 1], dataframe.iloc[:, 2]