Update multi_document_summarization.py
Browse files
multi_document_summarization.py
CHANGED
@@ -86,7 +86,7 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
|
|
86 |
),
|
87 |
]
|
88 |
|
89 |
-
|
90 |
"""Yields examples."""
|
91 |
with open(path, encoding="utf-8") as f:
|
92 |
data = json.load(f)
|
@@ -99,4 +99,4 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
|
|
99 |
tmp = {"cite_N": cite_n, "mid": cite_n_mid, "abstract": cite_n_abstract}
|
100 |
d = el.copy()
|
101 |
d["summary"] = tmp
|
102 |
-
yield idx, d
|
|
|
86 |
),
|
87 |
]
|
88 |
|
89 |
+
''' def _generate_examples(self, path=None):
|
90 |
"""Yields examples."""
|
91 |
with open(path, encoding="utf-8") as f:
|
92 |
data = json.load(f)
|
|
|
99 |
tmp = {"cite_N": cite_n, "mid": cite_n_mid, "abstract": cite_n_abstract}
|
100 |
d = el.copy()
|
101 |
d["summary"] = tmp
|
102 |
+
yield idx, d'''
|