KT AIVLE School 3기/AIVLER 활동

[Colab Trouble Shooting] [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")

순제로 2023. 4. 10. 23:59
728x90

자연어 처리 딥러닝을 하면서

뭘 건드린건지

 

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

 

오류가 뜨면서 기존에 되던것들이 안되던 현상이 발생했다.

 

망알...

 

 

오류 해석

NotImplementedError: UTF-8 로케일이 필요합니다. ANSI_X3.4-1968을(를) 사용하고 있습니다
이 오류는 로케일이 UTF-8로 설정되어 있지 않아 발생하는 문제입니다. 이 경우, 다음과 같은 코드를 추가하여 로케일을 변경해야 합니다

 

오류 해결 방법

코드 추가

import locale
locale.getpreferredencoding = lambda: "UTF-8"

 

 

해결방법은 아래의 링크를 참고했다.

https://github.com/gunthercox/ChatterBot/issues/2120

 

chatterbot 1.0.8 incompatible with spacy 3.0.0 · Issue #2120 · gunthercox/ChatterBot

Python 3.7.3 (default, Jul 25 2020, 13:03:44) File "test.py", line 4, in chatbot = ChatBot('Ron Obvious') File "/home/pi/.local/lib/python3.7/site-packages/chatterbot/chatterbot.py", line 28, in in...

github.com

 

728x90
반응형