Text Feature Extraction in NLP

Preface: In our previous blog, we discussed basic text preprocessing concepts. Whereas in this blog we shall visit methods that are used for text feature extraction. Every machine/deep learning algorithm takes features as input for its prediction. Therefore after the removal of slag words, we need to convert the text into features. Method 1: Number of characters: Let’s say we have a text, and we want to how many characters are there in the text. Method 2: Number words in each sentence:   The below code shows how to get the number of words in each sentence. The first sentence

Read More