Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
extractive-qa
Languages:
code
Size:
100K - 1M
License:
thepurpleowl
commited on
Commit
•
816d7d8
1
Parent(s):
c3ca1f8
Update codequeries.py
Browse files- codequeries.py +3 -3
codequeries.py
CHANGED
@@ -119,7 +119,7 @@ class Codequeries(datasets.GeneratorBasedBuilder):
|
|
119 |
"subtokenized_input_sequence", "label_sequence"],
|
120 |
citation=_CODEQUERIES_CITATION,
|
121 |
data_url={
|
122 |
-
"test": "twostep_relevance/"
|
123 |
},
|
124 |
url="",
|
125 |
),
|
@@ -212,8 +212,8 @@ class Codequeries(datasets.GeneratorBasedBuilder):
|
|
212 |
|
213 |
if self.config.name == "twostep":
|
214 |
key = 0
|
215 |
-
for
|
216 |
-
with open(
|
217 |
for line in f:
|
218 |
row = json.loads(line)
|
219 |
|
|
|
119 |
"subtokenized_input_sequence", "label_sequence"],
|
120 |
citation=_CODEQUERIES_CITATION,
|
121 |
data_url={
|
122 |
+
"test": ["twostep_relevance/" + " twostep_relevance_test_" + str(i) + ".json" for i in range(0,10)]
|
123 |
},
|
124 |
url="",
|
125 |
),
|
|
|
212 |
|
213 |
if self.config.name == "twostep":
|
214 |
key = 0
|
215 |
+
for fp in filepath:
|
216 |
+
with open(fp, encoding="utf-8") as f:
|
217 |
for line in f:
|
218 |
row = json.loads(line)
|
219 |
|