Tag NLTK – The Easy Table to know Everything

With the NLTK library, it is often difficult to find your way around, especially with the tags module (pos_tag)!

This module allows you to know the value of each word : adjective, noun, proper name, etc.

In this post, we propose you a summary table of each NLKT tags and their correspondence 😉

Tags NLTK

TagMeaning
CCCoordinating conjunction
CDCardinal number
DTDeterminer
EXExistential there
FWForeign word
INPreposition or subordinating conjunction
JJAdjective
VPVerb Phrase
JJRAdjective, comparative
JJSAdjective, superlative
LSList item marker
MDModal
NNNoun, singular or mass
NNSNoun, plural
PPPreposition Phrase
NNPProper noun, singular Phrase
NNPSProper noun, plural
PDTPre determiner
POSPossessive ending
PRPPersonal pronoun Phrase
PRPPossessive pronoun Phrase
RBAdverb
RBRAdverb, comparative
RBSAdverb, superlative
RPParticle
SSimple declarative clause
SBARClause introduced by a (possibly empty) subordinating conjunction
SBARQDirect question introduced by a wh-word or a wh-phrase.
SINVInverted declarative sentence, i.e. one in which the subject follows the tensed verb or modal.
SQInverted yes/no question, or main clause of a wh-question, following the wh-phrase in SBARQ.
SYMSymbol
VBVerb, base form
VBDVerb, past tense
VBGVerb, gerund or present participle
VBNVerb, past participle
VBPVerb, non-3rd person singular present
VBZVerb, 3rd person singular present
WDTWh-determiner
WPWh-pronoun
WPPossessive wh-pronoun
WRBWh-adverb
Tableau des correspondances des Tags

Short example of the use of the nltk.tag module :

from nltk import tag

tag.pos_tag(['I', 'am', 'a', 'tag', 'from', 'NLTK'])

Output : [(‘I’, ‘PRP’), (‘am’, ‘VBP’), (‘a’, ‘DT’), (‘tag’, ‘NN’), (‘from’, ‘IN’), (‘NLTK’, ‘NNP’)]

The tags from the NLTK library is used a lot for NLP projects but others use more classical libraries.

In this article especially, we use typical Machine Learning libraries for text classification.

A tutorial that we warmly recommend ! 🔥

One last word, if you want to go further and learn about Deep Learning - I've prepared for you the Action plan to Master Neural networks. for you.

7 days of free advice from an Artificial Intelligence engineer to learn how to master neural networks from scratch:

  • Plan your training
  • Structure your projects
  • Develop your Artificial Intelligence algorithms

I have based this program on scientific facts, on approaches proven by researchers, but also on my own techniques, which I have devised as I have gained experience in the field of Deep Learning.

To access it, click here :

GET MY ACTION PLAN

GET MY ACTION PLAN

Tom Keldenich
Tom Keldenich

Artificial Intelligence engineer and data enthusiast!

Founder of the website Inside Machine Learning

Leave a Reply

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

This page will not stay online forever

Enter your email to receive for free

The PANE method for Deep Learning

* indicates required

 

You will receive one email per day for 7 days – then you will receive my newsletter.
Your information will never be given to third parties.

You can unsubscribe in 1 click from any of my emails.



Entre ton email pour recevoir gratuitement
la méthode PARÉ pour faire du Deep Learning


Tu recevras un email par jour pendant 7 jours - puis tu recevras ma newsletter.
Tes informations ne seront jamais cédées à des tiers.

Tu peux te désinscrire en 1 clic depuis n'importe lequel de mes emails.