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

GraystoneEnter opened this issue · comments

[root@35 ~]# source /home/matrix/public_html/chatterbot/myenv/bin/activate
(myenv) [root@35 ~]# python3 /home/matrix/public_html/chatterbot/app.py
Traceback (most recent call last):
File "/home/matrix/public_html/chatterbot/app.py", line 29, in
chatbot = initialize_bot()
File "/home/matrix/public_html/chatterbot/app.py", line 20, in initialize_bot
chatbot = ChatBot('LandscapeGenieAI', tagger=nlp)
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/site-packages/chatterbot/chatterbot.py", line 28, in init
self.storage = utils.initialize_class(storage_adapter, **kwargs)
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/site-packages/chatterbot/utils.py", line 33, in initialize_class
return Class(*args, **kwargs)
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/site-packages/chatterbot/storage/sql_storage.py", line 20, in init
super().init(**kwargs)
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/site-packages/chatterbot/storage/storage_adapter.py", line 21,in init
'tagger_language', languages.ENG
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/site-packages/chatterbot/tagging.py", line 13, in init
self.nlp = spacy.load(self.language.ISO_639_1.lower())
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/site-packages/spacy/init.py", line 57, in load
config=config,
File "/home/matrix/public_html/chatterbot/myenv/lib64/python3.6/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")
(myenv) [root@35 ~]#