Initializing the NLP Environment

Let’s familiarize ourselves with the NLP environment initialization.

Now we’ll initialize the PyCaret NLP environment and create the transformation pipeline by using the setup() function. The target parameter lets us specify the dataset’s text column, which will go through a number of preprocessing steps as described below. After this process is completed, the first 10 instances of the preprocessed dataset are printed.

Get hands-on with 1400+ tech skills courses.