abarbosa commited on
Commit
2f1e50e
1 Parent(s): 01d0746

add \\n instead of space

Browse files
Files changed (1) hide show
  1. aes_enem_dataset.py +2 -2
aes_enem_dataset.py CHANGED
@@ -575,7 +575,7 @@ class HTMLParser:
575
  f.find("span", class_="certo").decompose()
576
  for paragraph in essay:
577
  result.append(paragraph.get_text())
578
- return " ".join(self._clean_list(result))
579
  elif self.sourceB:
580
  table = soup.find("article", class_="texto-conteudo entire")
581
  table = soup.find("div", class_="area-redacao-corrigida")
@@ -585,7 +585,7 @@ class HTMLParser:
585
  for span in soup.find_all("span"):
586
  span.decompose()
587
  result = table.find_all("p")
588
- result = " ".join(
589
  [paragraph.get_text().strip() for paragraph in result]
590
  )
591
  return result
 
575
  f.find("span", class_="certo").decompose()
576
  for paragraph in essay:
577
  result.append(paragraph.get_text())
578
+ return "\n".join(self._clean_list(result))
579
  elif self.sourceB:
580
  table = soup.find("article", class_="texto-conteudo entire")
581
  table = soup.find("div", class_="area-redacao-corrigida")
 
585
  for span in soup.find_all("span"):
586
  span.decompose()
587
  result = table.find_all("p")
588
+ result = "\n".join(
589
  [paragraph.get_text().strip() for paragraph in result]
590
  )
591
  return result