arka0821 commited on
Commit
759599c
1 Parent(s): 965a5f1

Update multi_document_summarization.py

Browse files
Files changed (1) hide show
  1. multi_document_summarization.py +1 -1
multi_document_summarization.py CHANGED
@@ -92,7 +92,7 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
92
  data = json.load(f)
93
  f.close()
94
  for idx, el in enumerate(data):
95
- ids = [id["id"] for id in json.loads(el["docs"])]
96
  texts = [text["text"] for text in el["docs"]]
97
  tmp = {"id": ids, "text": texts}
98
  d = el.copy()
 
92
  data = json.load(f)
93
  f.close()
94
  for idx, el in enumerate(data):
95
+ ids = [id["id"] for id in el["docs"]]
96
  texts = [text["text"] for text in el["docs"]]
97
  tmp = {"id": ids, "text": texts}
98
  d = el.copy()