Let's collect more data.

This commit is contained in:
Alexandr
2019-01-09 23:18:19 +03:00
parent 7e7a4e3cc6
commit 62ad832396
3 changed files with 57 additions and 5 deletions

View File

@ -248,7 +248,7 @@ class MessageWorker:
self.db.add_conf(chat_id, chat_title)
for word in collection:
self.db.add_relation(word=word, user_id=user_id, conf_id=chat_id)
self.db.add_relation(word=word, user_id=user_id, conf_id=chat_id, text=text)
def clean_text(self, s):
file = open(self.stop_words, 'rt')