eeoonn commited on
Commit
c49ae89
1 Parent(s): eb23888

Update scientific_papers.py

Browse files
Files changed (1) hide show
  1. scientific_papers.py +1 -1
scientific_papers.py CHANGED
@@ -125,7 +125,7 @@ class ScientificPapers(datasets.GeneratorBasedBuilder):
125
  # "abstract_text": list[str], abstract (list of paragraphs).
126
  # "section_names": list[str], list of section names.
127
  # "sections": list[list[str]], list of sections (list of paragraphs)
128
- d = json.loads(line)
129
  summary = "\n".join(d["abstract_text"])
130
  # In original paper, <S> and </S> are not used in vocab during training
131
  # or during decoding.
 
125
  # "abstract_text": list[str], abstract (list of paragraphs).
126
  # "section_names": list[str], list of section names.
127
  # "sections": list[list[str]], list of sections (list of paragraphs)
128
+ d = json.loads(line, strict=False)
129
  summary = "\n".join(d["abstract_text"])
130
  # In original paper, <S> and </S> are not used in vocab during training
131
  # or during decoding.