Given a word, the task is to write a Python program to find if the word is a noun or not using Python.
Input: India Output: India is noun. Input: Writing Output: Writing is not a noun.
There are various libraries that can be used to solve this problem.
Approach 1: PoS tagging using NLTK
India is a noun.
Approach 2: PoS tagging using Spacy
Writing is not a noun.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course