gunthercox / ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots

Home Page:https://chatterbot.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error during training chatbot

Timoth03 opened this issue · comments

PS C:\Users\Timoth\Desktop\CODES\chatbot> c:; cd 'c:\Users\Timoth\Desktop\CODES\chatbot'; & 'C:\Users\Timoth\AppData\Local\Programs\Python\Python311\python.exe' 'c:\Users\Timoth.vscode\extensions\ms-python.python-2023.18.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '50002' '--' 'c:\Users\Timoth\Desktop\CODES\chatbot\from chatterbot import ChatBot.py'
Traceback (most recent call last):
File "c:\Users\Timoth\Desktop\CODES\chatbot\from chatterbot import ChatBot.py", line 2, in
chatbot = ChatBot(
^^^^^^^^
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\chatterbot-1.1.0a7-py3.11.egg\chatterbot\chatterbot.py", line 28, in init
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\chatterbot-1.1.0a7-py3.11.egg\chatterbot\utils.py", line 33, in initialize_class
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\chatterbot-1.1.0a7-py3.11.egg\chatterbot\storage\sql_storage.py", line 20, in init
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\chatterbot-1.1.0a7-py3.11.egg\chatterbot\storage\storage_adapter.py", line 22, in init
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\chatterbot-1.1.0a7-py3.11.egg\chatterbot\tagging.py", line 26, in init
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\spacy_init_.py", line 51, in load
return util.load_model(
^^^^^^^^^^^^^^^^
File "C:\Users\Timoth\AppData\Local\Programs\Python\Python311\Lib\site-packages\spacy\util.py", line 471, in load_model
raise IOError(Errors.E941.format(name=name, full=OLD_MODEL_SHORTCUTS[name])) # type: ignore[index]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [E941] Can't find model 'en'. It looks like you're trying to load a model from a shortcut, which is obsolete as of spaCy v3.0. To load the model, use its full name instead:

nlp = spacy.load("en_core_web_sm")

For more details on the available models, see the models directory: https://spacy.io/models and if you want to create a blank model, use spacy.blank: nlp = spacy.blank("en")