From 7fb715d8d5dfe3e94f92ae0f7ff6dd91cd5f71f3 Mon Sep 17 00:00:00 2001 From: Mohd Kaif <107213582+Kaif9999@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:53:03 +0530 Subject: [PATCH] Update chatbot.py I have corrected the grammar of the word Tokenisation from TOkenisation to Tokenisation --- chatbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatbot.py b/chatbot.py index d7bc10a..6cd7e7e 100644 --- a/chatbot.py +++ b/chatbot.py @@ -25,7 +25,7 @@ with open('chatbot.txt','r', encoding='utf8', errors ='ignore') as fin: raw = fin.read().lower() -#TOkenisation +#Tokenisation sent_tokens = nltk.sent_tokenize(raw)# converts to list of sentences word_tokens = nltk.word_tokenize(raw)# converts to list of words