From 93b403b35fb4c17b89b5e52218c2c39562c825eb Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 5 Apr 2021 09:25:23 -0400 Subject: [PATCH] Better progress logging --- chatter/chat.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chatter/chat.py b/chatter/chat.py index 8ecbf1a..5ad3efb 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -213,13 +213,10 @@ class Chatter(Cog): def _train(self, data): trainer = ListTrainer(self.chatbot) total = len(data) - # try: for c, convo in enumerate(data, 1): + log.info(f"{c} / {total}") if len(convo) > 1: # TODO: Toggleable skipping short conversations - print(f"{c} / {total}") trainer.train(convo) - # except: - # return False return True @commands.group(invoke_without_command=False)