コード例 #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
コード例 #2
0
 def clean_text(self, text):
     dc = DataCleaning()
     return [dc.normalize(text)]