Using spaCy

Using spaCy

Here, the nlp object is a language model instance. You can assume that, throughout this tutorial, nlp refers to the language model loaded by en_core_web_sm. Now you can use spaCy to read a string or a text file.

In this section, you’ll use spaCy for a given input string and a text file. Load the language model instance in spaCy: