Datasets:
Languages:
Portuguese
License:
leonardo-avila
commited on
Commit
•
3b5c212
1
Parent(s):
175a1cd
Update fiqa_pt.py
Browse files- fiqa_pt.py +1 -9
fiqa_pt.py
CHANGED
@@ -14,8 +14,6 @@ _URLS = {
|
|
14 |
"qrel": "https://huggingface.co/qrel.tsv",
|
15 |
}
|
16 |
|
17 |
-
|
18 |
-
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
19 |
class BeirPT(datasets.GeneratorBasedBuilder):
|
20 |
"""BEIR BenchmarkDataset."""
|
21 |
|
@@ -41,7 +39,7 @@ class BeirPT(datasets.GeneratorBasedBuilder):
|
|
41 |
"text": datasets.Value("string"),
|
42 |
}
|
43 |
)
|
44 |
-
else:
|
45 |
features = datasets.Features(
|
46 |
{
|
47 |
"query_id": datasets.Value("string"),
|
@@ -55,12 +53,6 @@ class BeirPT(datasets.GeneratorBasedBuilder):
|
|
55 |
)
|
56 |
|
57 |
def _split_generators(self, dl_manager):
|
58 |
-
# TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
|
59 |
-
# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
|
60 |
-
|
61 |
-
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
62 |
-
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
63 |
-
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
64 |
urls = _URLS[self.config.name]
|
65 |
data_dir = dl_manager.download_and_extract(urls)
|
66 |
return [
|
|
|
14 |
"qrel": "https://huggingface.co/qrel.tsv",
|
15 |
}
|
16 |
|
|
|
|
|
17 |
class BeirPT(datasets.GeneratorBasedBuilder):
|
18 |
"""BEIR BenchmarkDataset."""
|
19 |
|
|
|
39 |
"text": datasets.Value("string"),
|
40 |
}
|
41 |
)
|
42 |
+
else:
|
43 |
features = datasets.Features(
|
44 |
{
|
45 |
"query_id": datasets.Value("string"),
|
|
|
53 |
)
|
54 |
|
55 |
def _split_generators(self, dl_manager):
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
urls = _URLS[self.config.name]
|
57 |
data_dir = dl_manager.download_and_extract(urls)
|
58 |
return [
|