Skip to content

Commit

Permalink
Merge pull request #116 from ArneBinder/fix_dataset_dict_select
Browse files Browse the repository at this point in the history
fix `DatasetDict.select` with document converters
  • Loading branch information
ArneBinder authored Apr 15, 2024
2 parents c549768 + a25e119 commit 16410c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pie_datasets/core/dataset_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ def select(
f"can only select from a Dataset, but the split '{split}' is of type {type(pie_split)}"
)
result[split] = Dataset.from_hf_dataset(
dataset=pie_split.select(**kwargs), document_type=pie_split.document_type
dataset=pie_split.select(**kwargs),
document_type=pie_split.document_type,
document_converters=pie_split.document_converters,
)
return result
else:
Expand Down

0 comments on commit 16410c9

Please sign in to comment.