Chapter 8: Text Classification with spaCy

This chapter is devoted to a very basic and popular task of NLP: text classification. You will first learn how to train spaCy's text classifier component, TextCategorizer. For this, you will learn how to prepare data and feed the data to the classifier; then we'll proceed to train the classifier. You'll also practice your new TextCategorizer skills on a popular dataset for sentiment analysis.

Next, you will also do text classification with the popular framework TensorFlow's Keras API together with spaCy. You will learn the basics of neural networks, sequential data modeling with LSTMs, and how to prepare text for machine learning tasks with Keras's text preprocessing module. You will also learn how ...

Get Mastering spaCy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.