본문 바로가기
Error Party

[Colab] Sklearn.feature_extraction.text 오류

by hyeeein 2024. 8. 14.
  • 오류 내용
    • cannot import name 'CountVectorizer' from 'sklearn.feature_extraction' (/usr/local/lib/python3.10/dist-packages/sklearn/feature_extraction/__init__.py)
  • 오류 코드
from sklearn.feature_extraction.text import CountVectorizer

 

  • 해결 방법
from tensorflow.sklearn.feature_extraction.text import CountVectorizer