Skip to content Skip to sidebar Skip to footer

Scikit Learn And Count Vectorizer Error

Does anyone know where this ImportError is originating from and how to fix it? I'm working from a CSV file to do some text mining. At this point, I'm simply trying to tokenize the

Solution 1:

The scikit-learn you are importing has not been build correctly. Check you search path:

python -c "import sys; print(sys.path)"

and sklearn.__path__ (not sure this is possible if the import of sklearn fails). Either rebuild the version of sklearn you are trying to import now (how to do that depends on how it was installed, most likely python setup.py build_ext -i or python setup.py install) or remove it from the search path.

Post a Comment for "Scikit Learn And Count Vectorizer Error"