How to merge multiple DatasetDict #5940
-
Hi Everyone!! I'm trying to merge 2 DatasetDict into 1 DatasetDict that has all the data from the 2 DatasetDict before. Here is my DatasetDict:
is there any way to merge DatasetDict? Thank You for your help |
Beta Was this translation helpful? Give feedback.
Answered by
mariosasko
Jun 12, 2023
Replies: 1 comment 1 reply
-
You can merge them as follows: DatasetDict({"train": datasets.concatenate_datasets([dd1["train"], dd2["train"]])}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MSZHabibie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can merge them as follows: