Text Representation Using Bag Of n-grams: NLP Tutorial For Beginners - S2 E5
codebasics codebasics
1.12M subscribers
45,285 views
906

 Published On Premiered Aug 13, 2022

Bag of n-grams is a text representation technique in NLP that uses a group of words to vectorize a given text. Bag of words is a particular case of bag of n-grams (with n=1). In this video, I will explain in straightforward language how bag of n-grams work along with coding in spacy and sklearn.

Code: https://github.com/codebasics/nlp-tut...
Exercise: https://github.com/codebasics/nlp-tut...
Complete NLP Playlist:    • NLP Tutorial Python  

⭐️ Timestamps ⭐️
00:00 Theory: What is a bag of n-grams
07:31 Coding: Bag of n-gram demo using sklearn CountVectorizer
17:06 Coding: News categories classification problem
18:50 Coding: Handle class imbalance
23:07 Coding: Train a model using raw text
32:20 Coding: Train a model using preprocessed text


Practical NLP Book In India: https://www.shroffpublishers.com/book...
Practical NLP Book Link For USA: https://amzn.to/3Aoeocm

Do you want to learn technology from me? Check https://codebasics.io/?utm_source=des... for my affordable video courses.

🔖Hashtags🔖

#nlp #nlptutorial #nlppython #nlptextrepresentation #nlpngram #ngramsmodels #ngrams #bigrams

Need help building software or data analytics/AI solutions? My company https://www.atliq.com/ can help. Click on the Contact button on that website.

🎥 Codebasics Hindi channel:    / @codebasicshindi  

#️⃣ Social Media #️⃣
🔗 Discord:   / discord  
📸 Instagram:   / codebasicshub  
🔊 Facebook:   / codebasicshub  
📱 Twitter:   / codebasicshub  
📝 Linkedin (Personal):   / dhavalsays  
📝 Linkedin (Codebasics):   / codebasics  
🔗 Patreon: https://www.patreon.com/codebasics?fa...

show more

Share/Embed