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 ! 🔥

THE PANE METHOD FOR DEEP LEARNING!

Get your 7 DAYS FREE TRAINING to learn how to create your first ARTIFICIAL INTELLIGENCE!

For the next 7 days I will show you how to use Neural Networks.

You will learn what Deep Learning is with concrete examples that will stick in your head.

BEWARE, this email series is not for everyone. If you are the kind of person who likes theoretical and academic courses, you can skip it.

But if you want to learn the PANE method to do Deep Learning, click here :

Tom Keldenich
Tom Keldenich

Data Engineer & passionate about Artificial Intelligence !

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.

Cette page ne restera pas en ligne éternellement


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.