From c429fa50c5edf9198030880b9d9151de73a6dced Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Fri, 17 May 2019 20:24:12 -0400 Subject: [PATCH] Save language attribute on lowercase tagger --- chatterbot/tagging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatterbot/tagging.py b/chatterbot/tagging.py index 7f6a38581..ea3c31d26 100644 --- a/chatterbot/tagging.py +++ b/chatterbot/tagging.py @@ -8,7 +8,7 @@ class LowercaseTagger(object): """ def __init__(self, language=None): - pass + self.language = language or languages.ENG def get_text_index_string(self, text): return text.lower()