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 to design a neural network with tf.keras
.
Following that, we will then make an end-to-end text classification experiment, from data preparation to preprocessing text with Keras Tokenizer
, neural network designing,...