fix grouped loading, updated size for documents
Browse files
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:
|
84 |
-
num_examples:
|
85 |
download_size: 1714597
|
86 |
-
dataset_size:
|
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
|