I am trying to use Naive Bayes for spam-ham classification. I am getting a word error repeteadly on here: The error message is just this: ‘hafta’ is the first word of the pandas dataframe and the trainng dataset. I tried the solution on this issue that seemed similar to mine but it didn’t work out. I will appreciate any hint
Tag: text-classification
Applying abbreviation to the column of a dataframe based on another column of the same dataframe
I have two columns in the dataframe, one of which is a class and another is a description. In the description I have some abbreviations. I want to expand these abbreviations based on the class value. I have a dictionary with class as key and in the value I have another dictionary with abbreviations and its full form. Since these
I have a data type problem in the text classification problem
I want to build deep learning classifiers for Kickstarter campaign prediction. I have a problem with the part of the model but I can not solve this. My code: In this point, I am getting ValueError: Failed to find data adapter that can handle input: <class ‘scipy.sparse.csr.csr_matrix’>, (<class ‘list’> containing values of types {“<class ‘str’>”}) I try np.asarray for solving