Closed yhzheng89 closed 4 years ago
Can you give a bit more context? This snippet doesn't seem to be from the book or the notebooks.
And clearly text_process
is not defined, as the error says.
even I was facing the same issue did you find a solution/alternative for this?
@Anuragsangem again, can you give more context? What was the code and what was the error?
Even i am having the same issue
@harshgeek4coder can you please describe the issue? What is the code, where in the book is it from, and what is the error?
@amueller Nope.. it worked .. i tried some new code while fixing it with changing the ratio of test split..Thanks Anyways.
from sklearn.feature_extraction.text import CountVectorizer bow_transformer = CountVectorizer(analyzer=text_process).fit(X)
NameError Traceback (most recent call last)