Esempio n. 1
0
 def clean_text(self):
     logging.info("Text Cleaning")
     dc = DataCleaning()
     texts = []
     for line in tqdm(self.dataset["COMPLAINT_TEXT"],
                      total=self.dataset.shape[0]):
         texts.append(dc.normalize(line))
     return texts
Esempio n. 2
0
 def clean_text(self, text):
     dc = DataCleaning()
     return [dc.normalize(text)]