Datasets:
fix
Browse files
govreport-summarization.py
CHANGED
@@ -94,6 +94,6 @@ class GovReportSummarizationDataset(datasets.GeneratorBasedBuilder):
|
|
94 |
report = data["report"]
|
95 |
summary = data["summary"]
|
96 |
|
97 |
-
report = re.sub("+
|
98 |
-
summary = re.sub("+
|
99 |
yield id_, {"report": report, "summary": summary}
|
|
|
94 |
report = data["report"]
|
95 |
summary = data["summary"]
|
96 |
|
97 |
+
report = re.sub(" +", " ", report)
|
98 |
+
summary = re.sub(" +", " ", summary)
|
99 |
yield id_, {"report": report, "summary": summary}
|