Better progress logging
This commit is contained in:
parent
5f30bc1234
commit
93b403b35f
@ -213,13 +213,10 @@ class Chatter(Cog):
|
|||||||
def _train(self, data):
|
def _train(self, data):
|
||||||
trainer = ListTrainer(self.chatbot)
|
trainer = ListTrainer(self.chatbot)
|
||||||
total = len(data)
|
total = len(data)
|
||||||
# try:
|
|
||||||
for c, convo in enumerate(data, 1):
|
for c, convo in enumerate(data, 1):
|
||||||
|
log.info(f"{c} / {total}")
|
||||||
if len(convo) > 1: # TODO: Toggleable skipping short conversations
|
if len(convo) > 1: # TODO: Toggleable skipping short conversations
|
||||||
print(f"{c} / {total}")
|
|
||||||
trainer.train(convo)
|
trainer.train(convo)
|
||||||
# except:
|
|
||||||
# return False
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@commands.group(invoke_without_command=False)
|
@commands.group(invoke_without_command=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user