lenah commited on
Commit
9943895
1 Parent(s): 3b24d73

fix grouped loading, updated size for documents

Browse files
Files changed (2) hide show
  1. LaCour.py +2 -0
  2. README.md +3 -3
LaCour.py CHANGED
@@ -194,6 +194,8 @@ class LaCourDataset(datasets.GeneratorBasedBuilder):
194
  logger.info("generating examples from = %s", filepaths)
195
  cols = df.columns.tolist()
196
  cols.remove('appno')
 
 
197
  # group appnos to avoid duplicates
198
  df = df.groupby(cols)['appno'].apply(';'.join).reset_index()
199
  for _, row in df.iterrows():
 
194
  logger.info("generating examples from = %s", filepaths)
195
  cols = df.columns.tolist()
196
  cols.remove('appno')
197
+ # fix potential null values for judges
198
+ df['judges'] = df['judges'].fillna('')
199
  # group appnos to avoid duplicates
200
  df = df.groupby(cols)['appno'].apply(';'.join).reset_index()
201
  for _, row in df.iterrows():
README.md CHANGED
@@ -80,10 +80,10 @@ dataset_info:
80
  dtype: bool
81
  splits:
82
  - name: train
83
- num_bytes: 962951
84
- num_examples: 369
85
  download_size: 1714597
86
- dataset_size: 962951
87
  - config_name: transcripts
88
  features:
89
  - name: id
 
80
  dtype: bool
81
  splits:
82
  - name: train
83
+ num_bytes: 1007746
84
+ num_examples: 379
85
  download_size: 1714597
86
+ dataset_size: 1007746
87
  - config_name: transcripts
88
  features:
89
  - name: id