Articles → SPACY → Parts-Of-Speech Tagging In Spacy

Parts-Of-Speech Tagging In Spacy






Types Of POS




  1. Coarse-grained POS tags.
  2. Fine-grained POS tags.

Coarse-Grained POS Tags




TagMeaning
NOUNCommon noun (dog, book)
PROPNProper noun (John, India)
VERBVerb





Fine-Grained POS Tags




TagMeaning
NNNoun, singular
NNSNoun, plural
NNPProper noun, singular





Example


import spacy

nlp = spacy.load("en_core_web_sm")
doc = nlp("Apple is looking at buying U.K. startup for $1 billion.")

for token in doc:
    print(token.text, token.pos_, token.tag_)



Output


Picture showing the output of parts of speech tagging in spacy



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, November 25, 2025

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250