NLP: Text Processing In Data Science Projects

Learn The Data Science Techniques To Process Text To Use For NLP Projects In Python

Farhad Malik
FinTechExplained

--

Once we have gathered the text, the next stage is about cleaning and consolidating the text. It is important to ensure the text is standardised, the noise is removed so that efficient analysis can be performed on the text to derive meaningful insights.

It’s important to note that the cleaning and processing of text is highly dependent on the nature of the NLP project. As an instance for your project, numbers might be important.

This article aims to explain the steps we can perform to clean the text for NLP projects.

Photo by NordWood Themes on Unsplash

Article Aim

I will explain following key techniques:

  1. Convert Text To Lowercase
  2. Tokenise Paragraphs To Sentences
  3. Tokenise Sentences To Words
  4. Remove Numbers
  5. Remove Punctuation
  6. Remove Stop words
  7. Remove Whitespaces

I will demonstrate how we can achieve the goal by using the NLTK library in Python and the regular expressions. We can install NLTK library…

--

--