fix
Browse files- pubmed-summarization.py +1 -1
pubmed-summarization.py
CHANGED
@@ -117,7 +117,7 @@ class PubMedSummarizationDataset(datasets.GeneratorBasedBuilder):
|
|
117 |
'section_names': List[str],
|
118 |
'sections': List[List[str]]
|
119 |
"""
|
120 |
-
if self.config.name == "
|
121 |
article = data["article_text"]
|
122 |
else:
|
123 |
article = [item.strip() for sublist in data["sections"] for item in sublist]
|
|
|
117 |
'section_names': List[str],
|
118 |
'sections': List[List[str]]
|
119 |
"""
|
120 |
+
if self.config.name == "document":
|
121 |
article = data["article_text"]
|
122 |
else:
|
123 |
article = [item.strip() for sublist in data["sections"] for item in sublist]
|