arka0821 commited on
Commit
c53ea61
1 Parent(s): 419b1fd

Update multi_document_summarization.py

Browse files
Files changed (1) hide show
  1. multi_document_summarization.py +8 -1
multi_document_summarization.py CHANGED
@@ -91,5 +91,12 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
91
  data = f.readlines()#json.load(f)
92
  f.close()
93
  print("************")
94
- print(data[1])
 
 
 
 
 
 
 
95
 
 
91
  data = f.readlines()#json.load(f)
92
  f.close()
93
  print("************")
94
+ print(data)
95
+ for idx, el in enumerate(data):
96
+ #ids = [id["id"] for id in json.loads(el["docs"])]
97
+ #texts = [text["text"] for text in el["docs"]]
98
+ #tmp = {"id": ids, "text": texts}
99
+ d = el#.copy()
100
+ #d["docs"] = tmp
101
+ yield idx, d
102