Update multi_document_summarization.py
Browse files
multi_document_summarization.py
CHANGED
|
@@ -93,10 +93,10 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
|
|
| 93 |
print("************")
|
| 94 |
print(type(data))
|
| 95 |
for idx, el in enumerate(data):
|
| 96 |
-
print(el)
|
| 97 |
-
ids = [id["id"] for id in el["docs"]]
|
| 98 |
-
texts = [text["text"] for text in el["docs"]]
|
| 99 |
-
tmp = {"id": ids, "text": texts}
|
| 100 |
d = el.copy()
|
| 101 |
-
d["docs"] = tmp
|
| 102 |
yield idx, d
|
|
|
|
| 93 |
print("************")
|
| 94 |
print(type(data))
|
| 95 |
for idx, el in enumerate(data):
|
| 96 |
+
print(el["docs"])
|
| 97 |
+
#ids = [id["id"] for id in el["docs"]]
|
| 98 |
+
#texts = [text["text"] for text in el["docs"]]
|
| 99 |
+
#tmp = {"id": ids, "text": texts}
|
| 100 |
d = el.copy()
|
| 101 |
+
#d["docs"] = tmp
|
| 102 |
yield idx, d
|