Datasets:
Languages:
Portuguese
License:
leonardo-avila
commited on
Commit
·
c0ebc89
1
Parent(s):
07fcd84
Update fiqa_pt.py
Browse files- fiqa_pt.py +3 -6
fiqa_pt.py
CHANGED
@@ -6,15 +6,12 @@ import datasets
|
|
6 |
_DESCRIPTION = "FIQA Dataset"
|
7 |
_SPLITS = ["corpus", "topics", "qrel"]
|
8 |
|
9 |
-
|
10 |
"corpus": "corpus_pt.tsv",
|
11 |
"topics": "topics_pt.tsv",
|
12 |
"qrel": "qrels.tsv",
|
13 |
}
|
14 |
|
15 |
-
URL = ""
|
16 |
-
_URLs = {subset: URL + _URLS[subset] for subset in _SPLITS}
|
17 |
-
|
18 |
class BEIR(datasets.GeneratorBasedBuilder):
|
19 |
"""BEIR BenchmarkDataset."""
|
20 |
|
@@ -31,7 +28,7 @@ class BEIR(datasets.GeneratorBasedBuilder):
|
|
31 |
features = datasets.Features(
|
32 |
{
|
33 |
"id": datasets.Value("string"),
|
34 |
-
"text": datasets.Value("string")
|
35 |
}
|
36 |
)
|
37 |
else:
|
@@ -39,7 +36,7 @@ class BEIR(datasets.GeneratorBasedBuilder):
|
|
39 |
{
|
40 |
"query_id": datasets.Value("string"),
|
41 |
"doc_id": datasets.Value("string"),
|
42 |
-
"rel": datasets.Value("string")
|
43 |
}
|
44 |
)
|
45 |
return datasets.DatasetInfo(
|
|
|
6 |
_DESCRIPTION = "FIQA Dataset"
|
7 |
_SPLITS = ["corpus", "topics", "qrel"]
|
8 |
|
9 |
+
_URLs = {
|
10 |
"corpus": "corpus_pt.tsv",
|
11 |
"topics": "topics_pt.tsv",
|
12 |
"qrel": "qrels.tsv",
|
13 |
}
|
14 |
|
|
|
|
|
|
|
15 |
class BEIR(datasets.GeneratorBasedBuilder):
|
16 |
"""BEIR BenchmarkDataset."""
|
17 |
|
|
|
28 |
features = datasets.Features(
|
29 |
{
|
30 |
"id": datasets.Value("string"),
|
31 |
+
"text": datasets.Value("string")
|
32 |
}
|
33 |
)
|
34 |
else:
|
|
|
36 |
{
|
37 |
"query_id": datasets.Value("string"),
|
38 |
"doc_id": datasets.Value("string"),
|
39 |
+
"rel": datasets.Value("string")
|
40 |
}
|
41 |
)
|
42 |
return datasets.DatasetInfo(
|