Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Sub-tasks:
open-domain-qa
Languages:
English
Size:
10K - 100K
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- natural_questions.py +1 -1
natural_questions.py
CHANGED
@@ -133,7 +133,7 @@ class NaturalQuestions(datasets.BeamBasedBuilder):
|
|
133 |
html_bytes = ex_json["document_html"].encode("utf-8")
|
134 |
|
135 |
def _parse_short_answer(short_ans):
|
136 |
-
""""Extract text of short answer."""
|
137 |
ans_bytes = html_bytes[short_ans["start_byte"] : short_ans["end_byte"]]
|
138 |
# Remove non-breaking spaces.
|
139 |
ans_bytes = ans_bytes.replace(b"\xc2\xa0", b" ")
|
|
|
133 |
html_bytes = ex_json["document_html"].encode("utf-8")
|
134 |
|
135 |
def _parse_short_answer(short_ans):
|
136 |
+
""" "Extract text of short answer."""
|
137 |
ans_bytes = html_bytes[short_ans["start_byte"] : short_ans["end_byte"]]
|
138 |
# Remove non-breaking spaces.
|
139 |
ans_bytes = ans_bytes.replace(b"\xc2\xa0", b" ")
|