Update multi_document_summarization.py
Browse files
multi_document_summarization.py
CHANGED
|
@@ -86,7 +86,6 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
|
|
| 86 |
),
|
| 87 |
]
|
| 88 |
def _generate_examples(self, path=None):
|
| 89 |
-
print("*************** " + path)
|
| 90 |
"""Yields examples."""
|
| 91 |
with open(path, encoding="utf-8") as f:
|
| 92 |
data = json.load(f)
|
|
@@ -97,5 +96,7 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
|
|
| 97 |
tmp = {"id": ids, "text": texts}
|
| 98 |
d = el.copy()
|
| 99 |
d["docs"] = tmp
|
|
|
|
|
|
|
| 100 |
yield idx, d
|
| 101 |
|
|
|
|
| 86 |
),
|
| 87 |
]
|
| 88 |
def _generate_examples(self, path=None):
|
|
|
|
| 89 |
"""Yields examples."""
|
| 90 |
with open(path, encoding="utf-8") as f:
|
| 91 |
data = json.load(f)
|
|
|
|
| 96 |
tmp = {"id": ids, "text": texts}
|
| 97 |
d = el.copy()
|
| 98 |
d["docs"] = tmp
|
| 99 |
+
print("***********************")
|
| 100 |
+
print(d)
|
| 101 |
yield idx, d
|
| 102 |
|