Data Preparation Question for NLP with Python

Follow the full discussion on Reddit.
Hello everyone! I am currently working on a project that involves text classification. I'm not an expert on machine learning I'm trying to understand how to prepare data and the pipeline for feature extracting and processing data. Currently I'm reading large volumes of labelled data with text, so I am a little confused on how to prepare the data for the model to be trained effectively. Currently, I'm simply reading in the data from a csv file and using the sklearn tf-idf vectorizer to extract features, and using this vector input[label, text] I have 21 labels total, and plenty of training data to train the model. the output is a sparse matrix, that is in turn, used to train the model.

Comments

There's unfortunately not much to read here yet...

Discover the Best of Machine Learning.

Ever having issues keeping up with everything that's going on in Machine Learning? That's where we help. We're sending out a weekly digest, highlighting the Best of Machine Learning.

Join over 900 Machine Learning Engineers receiving our weekly digest.

Best of Machine LearningBest of Machine Learning

Discover the best guides, books, papers and news in Machine Learning, once per week.

Twitter