Update sarcasm.py
Browse files- sarcasm.py +3 -3
sarcasm.py
CHANGED
@@ -50,15 +50,15 @@ class Sarcasm(GeneratorBasedBuilder):
|
|
50 |
return [
|
51 |
SplitGenerator(
|
52 |
name=Split.TRAIN,
|
53 |
-
gen_kwargs={"data_file_path": data_file_path, "split": Split.TRAIN, "size": train_size}
|
54 |
),
|
55 |
SplitGenerator(
|
56 |
name=Split.VALIDATION,
|
57 |
-
gen_kwargs={"data_file_path": data_file_path, "split": Split.VALIDATION, "size": val_size}
|
58 |
),
|
59 |
SplitGenerator(
|
60 |
name=Split.TEST,
|
61 |
-
gen_kwargs={"data_file_path": data_file_path, "split": Split.TEST, "size": test_size}
|
62 |
),
|
63 |
]
|
64 |
|
|
|
50 |
return [
|
51 |
SplitGenerator(
|
52 |
name=Split.TRAIN,
|
53 |
+
gen_kwargs={"data_file_path": data_file_path["csv_file"], "split": Split.TRAIN, "size": train_size}
|
54 |
),
|
55 |
SplitGenerator(
|
56 |
name=Split.VALIDATION,
|
57 |
+
gen_kwargs={"data_file_path": data_file_path["csv_file"], "split": Split.VALIDATION, "size": val_size}
|
58 |
),
|
59 |
SplitGenerator(
|
60 |
name=Split.TEST,
|
61 |
+
gen_kwargs={"data_file_path": data_file_path["csv_file"], "split": Split.TEST, "size": test_size}
|
62 |
),
|
63 |
]
|
64 |
|