EC2 Default User
commited on
Commit
·
39b3ee7
1
Parent(s):
b29b9b0
add scipt.py
Browse files- data_loader.py +10 -0
data_loader.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset, DatasetDict
|
2 |
+
|
3 |
+
# Define paths to data files
|
4 |
+
data_files = {
|
5 |
+
"train": ["chunk_0.parquet", "chunk_1.parquet", "chunk_2.parquet"],
|
6 |
+
"validation": ["chunk_3.parquet", "chunk_4.parquet", "chunk_5.parquet"],
|
7 |
+
}
|
8 |
+
|
9 |
+
# Load dataset with splits
|
10 |
+
dataset = load_dataset('parquet', data_files=data_files)
|