ccdv commited on
Commit
e44ab9f
1 Parent(s): d859477
Files changed (1) hide show
  1. 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 == "section":
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]