We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I'm using a bag of words model in sklearn, and my problem seems to be that transforming the bag of words from a sparse matrix to a dataframe takes to long. But CountVectorizer can only create sparse matrices, so I don't see a way around this, nor do I know of a simpler model for modeling text. Any suggestions?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Stack Exchange Question Classifier
You are viewing a single comment's thread. Return to all comments →
I'm using a bag of words model in sklearn, and my problem seems to be that transforming the bag of words from a sparse matrix to a dataframe takes to long. But CountVectorizer can only create sparse matrices, so I don't see a way around this, nor do I know of a simpler model for modeling text. Any suggestions?