system HF staff commited on
Commit
8a86a94
1 Parent(s): a696b9f

Update files from the datasets library (from 1.6.1)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.6.1

Files changed (1) hide show
  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" ")