r/DataScienceSimplified • • Aug 03 '17
Help with Text Classification Problem
https://gist.github.com/anonymous/59ba930a783571c85ef86ba41424b311
2
Upvotes
r/DataScienceSimplified • • Aug 03 '17
View all comments
Show parent comment
1
u/[deleted] Aug 03 '17
I was using this example as a starting point since my problem is very similar to this example. The only difference is, I have one additional text column (part #) that is categorical, which I transformed it using LabelEncoder and OneHotEncoder. Then I concatenated it with the text document column after I had transformed it with CountVectorizer and TfidfTransformer.
But I get a dimension mismatch error when I invoke the prediction. So that's where I'm stuck at now.