Datasets:
Update TRIP.py
Browse files
TRIP.py
CHANGED
@@ -82,9 +82,8 @@ class TRIP(datasets.GeneratorBasedBuilder):
|
|
82 |
|
83 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
84 |
"""Returns SplitGenerators."""
|
85 |
-
splits = ["
|
86 |
data_roots = dl_manager.download_and_extract({k: SERVER_URL + f"trip-{k}.jsonl" for k in splits})
|
87 |
-
print("==========FINISHED DOWNLOADING==========")
|
88 |
return [
|
89 |
datasets.SplitGenerator(
|
90 |
name=split,
|
@@ -96,7 +95,6 @@ class TRIP(datasets.GeneratorBasedBuilder):
|
|
96 |
]
|
97 |
|
98 |
def _generate_examples(self, filepath):
|
99 |
-
print("⏳ Generating examples from = {}".format(filepath))
|
100 |
# load jsonl file
|
101 |
import json
|
102 |
with open(filepath) as f:
|
|
|
82 |
|
83 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
84 |
"""Returns SplitGenerators."""
|
85 |
+
splits = ["ClozeDev", "ClozeTest", "ClozeTrain", "OrderDev", "OrderTest", "OrderTrain"]
|
86 |
data_roots = dl_manager.download_and_extract({k: SERVER_URL + f"trip-{k}.jsonl" for k in splits})
|
|
|
87 |
return [
|
88 |
datasets.SplitGenerator(
|
89 |
name=split,
|
|
|
95 |
]
|
96 |
|
97 |
def _generate_examples(self, filepath):
|
|
|
98 |
# load jsonl file
|
99 |
import json
|
100 |
with open(filepath) as f:
|