Renames csv files - file name conflict in datasets library
Browse files
create_dataset.py
CHANGED
@@ -3,9 +3,9 @@ from datasets import DatasetDict, load_dataset
|
|
3 |
|
4 |
def main():
|
5 |
label2id = {"positive": 2, "neutral": 1, "negative": 0}
|
6 |
-
train_dset = load_dataset("csv", data_files="raw_data/
|
7 |
train_dset = train_dset.remove_columns(["selected_text"])
|
8 |
-
test_dset = load_dataset("csv", data_files="raw_data/
|
9 |
raw_dset = DatasetDict()
|
10 |
raw_dset["train"] = train_dset
|
11 |
raw_dset["test"] = test_dset
|
|
|
3 |
|
4 |
def main():
|
5 |
label2id = {"positive": 2, "neutral": 1, "negative": 0}
|
6 |
+
train_dset = load_dataset("csv", data_files="raw_data/train_csv", split="train")
|
7 |
train_dset = train_dset.remove_columns(["selected_text"])
|
8 |
+
test_dset = load_dataset("csv", data_files="raw_data/train_csv", split="train")
|
9 |
raw_dset = DatasetDict()
|
10 |
raw_dset["train"] = train_dset
|
11 |
raw_dset["test"] = test_dset
|
raw_data/{test.csv → test_csv}
RENAMED
File without changes
|
raw_data/{train.csv → train_csv}
RENAMED
File without changes
|