ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

spacy.load("en_core_web_sm")

Open CGyan10 opened this issue 3 years ago • 5 comments

database_uri='sqlite:///database.sqlite3'

error when run code with above line

error shows

[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")

CGyan10 avatar Feb 03 '22 09:02 CGyan10

Following. I'm getting a lot of problems that have to do with outdated modules.

eddiecarbin avatar Feb 09 '22 06:02 eddiecarbin

looks like it was answered here. https://github.com/gunthercox/ChatterBot/issues/2194

eddiecarbin avatar Feb 09 '22 07:02 eddiecarbin

I got my bot to work. I also had this issue. I think I installed the old Spacy, and downloaded the old embeddings manually. I can only get my bot to work on Python 3.7 but it works. I'm also using the "Chatterbot2" module. If I use just plain Chatterbot it still freaks out. I had to install alot of the requirements manually. I hope this helps someone. I'm not sure if I installed Chatterbot2 directly from Github using pip but I may have. Sorry if I can't remember details clearly but I have memory problems. Anyway those are some ideas some of you can try if you want.

StevieEngbrock avatar Feb 17 '22 04:02 StevieEngbrock

do you like this:

class ENGSM: ISO_639_1 = 'en_core_web_sm'

chatbot = ChatBot( "Charlie", tagger_language=ENGSM # <-- this is a language )

britobeatriz avatar May 14 '22 20:05 britobeatriz