How to do Named Entities Recognition (NER) in Python

One of the most major forms of chunking in natural language processing is called “Named Entity Recognition.” The idea is to automatically be able to pull out “entities” like people, places, things, locations, monetary figures, and more.

The various types of named entities and their codes are listed below for your reference.

All the above entities can be recognized by the Spacy library out of the box!

spaCy is a free, open-source library for advanced Natural Language Processing (NLP) in Python. It helps to perform NLP using pre-trained models. We are going to use one such model called “en_core_web_sm

More information at : https://spacy.io/models/en#en_core_web_sm

Installing and using Spacy

Installing spacy is a two-step process, first, you install the library, then you install the required model

Finding Entities in Sentences using Spacy NER

Sample Output

NER using Spacy in Python
NER using Spacy in Python

Author Details
Lead Data Scientist
Farukh is an innovator in solving industry problems using Artificial intelligence. His expertise is backed with 10 years of industry experience. Being a senior data scientist he is responsible for designing the AI/ML solution to provide maximum gains for the clients. As a thought leader, his focus is on solving the key business problems of the CPG Industry. He has worked across different domains like Telecom, Insurance, and Logistics. He has worked with global tech leaders including Infosys, IBM, and Persistent systems. His passion to teach inspired him to create this website!

Leave a Reply!

Your email address will not be published. Required fields are marked *