Datasets:
Languages:
Portuguese
License:
leonardo-avila
commited on
Commit
•
f9200b2
1
Parent(s):
9fd9cd8
Update fiqa_pt.py
Browse files- fiqa_pt.py +6 -5
fiqa_pt.py
CHANGED
@@ -26,7 +26,7 @@ class BEIR(datasets.GeneratorBasedBuilder):
|
|
26 |
return datasets.DatasetInfo(
|
27 |
description=_DESCRIPTION,
|
28 |
features=datasets.Features({
|
29 |
-
"id": datasets.Value("string"),
|
30 |
"text": datasets.Value("string"),
|
31 |
}),
|
32 |
supervised_keys=None,
|
@@ -50,7 +50,8 @@ class BEIR(datasets.GeneratorBasedBuilder):
|
|
50 |
"""Yields examples."""
|
51 |
with open(filepath, encoding="utf-8") as f:
|
52 |
for line in f:
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
26 |
return datasets.DatasetInfo(
|
27 |
description=_DESCRIPTION,
|
28 |
features=datasets.Features({
|
29 |
+
#"id": datasets.Value("string"),
|
30 |
"text": datasets.Value("string"),
|
31 |
}),
|
32 |
supervised_keys=None,
|
|
|
50 |
"""Yields examples."""
|
51 |
with open(filepath, encoding="utf-8") as f:
|
52 |
for line in f:
|
53 |
+
yield line
|
54 |
+
#fields = line.strip().split("\t")
|
55 |
+
#idx = fields[0]
|
56 |
+
#text = fields[1]
|
57 |
+
#yield idx, text
|