One of the more powerful aspects of the NLTK module is the Part of Speech(POS) tagging that it can do for you. This means labeling words in a sentence as nouns, adjectives, verbs…etc. Even more impressive, it also labels by tense, and more. Here’s a list of the tags, what they mean, and some examples

|
1 2 3 4 |
from nltk import word_tokenize # Take a quick look into the POS tagger from nltk # The function will identify what part of speech is represented by each word nltk.pos_tag(word_tokenize('This is a very good book')) |
Sample Output

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!
