Text Representation Using Word Embeddings: NLP Tutorial For Beginners - S2 E7
Key Takeaways
This video covers word embeddings, a technique used in NLP to represent text as vectors, and introduces various word embedding techniques such as Word2vec, Glove, fastText, BERT, and GPT.
Full Transcript
in this NLP playlist we have covered the tax representation techniques from label encoding to tfidf today we are going to talk about word embeddings there are certain limitations of megafores and tfidf which we have discussed in previous videos which is the vector size can really be big for bag of words and TF IDF model and it may consume lot of compute resources memory and so on let's say you have vocabulary of 200 000 words or 100 000 words each Vector for each of the documents would be 100 000 size and that that may be too much and the presentation is parse meaning in that Vector most of the values are zero so it is not a very efficient presentation the other problem we saw was that let's say you have two words I need help I need assistance these are similar sentences you expect that their Vector representation should be similar but since these are TF IDF and bag of words are count based methods the vector representation might not be similar here you can see see there is one here zero here one here zero here uh so these techniques do not capture the meaning of the words properly you expect that if you have two sentences which are similar their vectors will be very similar word embedding tries to address both of these shortcomings first similar words will have similar vectors similar words or even sentences for example good and great these are two similar words when you will use word embedding you will notice that their Vector will be very similar see 3.1 3.1 4.4 4.2 there will be slight differences but mostly they will be similar they will also be lower in dimension which means the size of this Vector will be 300 300 is a one of the popular Vector sizes in word embeddings it could be 50 size 100 sizes Etc but it won't be like 100 000 because your workability size is 100 000 and these representations are dense representation meaning you won't notice too many zeros as opposed to the previous techniques where most of the values in the vectors were zero now there are various word embedding techniques such as word to whack glow fast text these are the techniques uh which are built on different approaches and the common technique that we use to build these word embedding which is what to wear glow and fast text is using continuous bag of words and Skip Gram now this might be a jargon so just hold on I will go over that in detail a little later then there are techniques such as bird and GPT which are Transformer based embedding techniques these are the latest advancements in NLP when you do Google search it is using bird so you might have heard all these jargons so I'm just going to go over these jargons in brief and in the later videos we'll go over them one by one so don't worry if you're confused right now just don't worry just remember that these are various word embedding techniques there is a technique called Elmo which is based on lstm now what do these techniques do see they convert a word or a sentence into a vector representation so that it can capture the meaning of that word properly not only that you can do arithmetic with the words word to back has this famous example that you can do arithmetic you know how you do arithmetic with numbers let's say 2 plus 3 is equal to 5 minus 1 is equal to four you can do similar things with the tax and that's mind-boggling right see King King has all these attributes Authority King is Rich it has power but if you remove the element of man from that and add woman it becomes Queen correct Queen also has power Authority lot of money but the gender is different so you subtract that gender at a new gender now you get Quinn will look all of this in detail we'll look into this in in the detail uh during the code but for word to whack I have already made a different video so if you go to YouTube search for code Basics word to whack that that first video that you see which is part of my deep learning playlist please watch that because that will give you a very good understanding of the actual method or actual technique behind word to whack since I already have that video I'm not going to repeat the same thing here I would highly recommend you watch that okay if you don't watch it you're going to probably miss few things in this NLP Series so word to wet very very important concept you need to watch that video now there are variations based on the data set that they are trained on for example word to work you can train on Google News data set or some different Corpus and based on that you can get different variations so virtuac is like a technique but you can use the technique on different data set it's like you are training support Vector machine so support Vector machine is one technique but you can train it on Amazon reviews or movie classification similarly word to work the actual embedding Vector you can get by training it in a different Corpus same like glow if you train it on Twitter let's say there is a globe Twitter 50 this model which is available in gen Sim Library it will understand the tweets better all the slang and all the short form that you use it will understand that better and then there could be a Wiki gigawatt Globe version there are so many different models but the basic techniques are glow work to work fast decks and so on similarly the Transformer based models such as bird also based on what type of data set they're trained on you can get biobert or fin bird fin bird is trained on financial data set bio bird is strain on biomedical database and you can also do some parameter tuning in bird and get things like Albert or Roberta so you would hear all these jargons you know fear fin bird Albert Roberta virtue so I'm just throwing all the jargons so that you get some overview don't worry if you don't understand these techniques we'll go over them in detail in the later video but just to summarize what this technique produces see folks it's very simple the whole purpose of these techniques is to convert word into a vector because we have seen previously machine learning models don't understand text they need numbers so you can convert a single word such as good to a vector you can convert entire sentence to a vector and that is called sentence embedding or it can convert the entire paragraph or a news article or a document into a vector so in the future video we will be writing code and we'll be using this techniques to solve the actual NLP problems this was just a short introduction on word embedding once again watch my word to whack video and by the time you come to the next video you should have watched that video okay this video the first one otherwise you're going to miss out on few things all right if you like this playlist give it a thumbs up and share it with your friends thank you [Music] foreign
Original Description
Word embeddings have revolutionized NLP in the last few years. Word2vec, Glove, fastText are a few popular word embedding techniques. New transformer-based word and document embedding techniques such as BERT, GPT, ElMo are further advancing the arena of representing text accurately in form of a dense vector. In this video, we will have an overview of word embedding. There is no coding in this video.
Full tutorial on Word2vec: https://www.youtube.com/watch?v=hQwFeIupNP0
Complete NLP Playlist: https://www.youtube.com/playlist?list=PLeo1K3hjS3uuvuAXhYjV2lMEShq2UYSwX
Do you want to learn technology from me? Check https://codebasics.io/?utm_source=description&utm_medium=yt&utm_campaign=description&utm_id=description for my affordable video courses.
🔖Hashtags🔖
#nlp #nlptutorial #textrepresentation #wordembeddings #nlptextrepresentation #nlpwordembeddings
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: https://www.youtube.com/channel/UCTmFBhuhMibVoSfYom1uXEg
#️⃣ Social Media #️⃣
🔗 Discord: https://discord.gg/r42Kbuk
📸 Instagram: https://www.instagram.com/codebasicshub/
🔊 Facebook: https://www.facebook.com/codebasicshub
📱 Twitter: https://twitter.com/codebasicshub
📝 Linkedin (Personal): https://www.linkedin.com/in/dhavalsays/
📝 Linkedin (Codebasics): https://www.linkedin.com/company/codebasics/
🔗 Patreon: https://www.patreon.com/codebasics?fan_landing=true
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from codebasics · codebasics · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Python Tutorial - 1. Install python on windows
codebasics
Python Tutorial - 2. Variables
codebasics
Python Tutorial - 3. Numbers
codebasics
Python Tutorial - 4. Strings
codebasics
Python Tutorial - 5. Lists
codebasics
Python Tutorial - 6. Install PyCharm on Windows
codebasics
PyCharm Tutorial - 7. Debug python code using PyCharm
codebasics
Python Tutorial - 8. If Statement
codebasics
Python Tutorial - 9. For loop
codebasics
Python Tutorial - 10. Functions
codebasics
Python Tutorial - 11. Dictionaries and Tuples
codebasics
Python Tutorial - 12. Modules
codebasics
Python Tutorial - 13. Reading/Writing Files
codebasics
How to install Julia on Windows
codebasics
Python Tutorial - 14. Working With JSON
codebasics
Julia Tutorial - 1. Variables
codebasics
Julia Tutorial - 2. Numbers
codebasics
Python Tutorial - 15. if __name__ == "__main__"
codebasics
Julia Tutorial - Why Should I Learn Julia Programming Language
codebasics
Python Tutorial - 16. Exception Handling
codebasics
Julia Tutorial - 3. Complex and Rational Numbers
codebasics
Julia Tutorial - 4. Strings
codebasics
Python Tutorial - 17. Class and Objects
codebasics
Julia Tutorial - 5. Functions
codebasics
Julia Tutorial - 6. If Statement and Ternary Operator
codebasics
Julia Tutorial - 7. For While Loop
codebasics
Python Tutorial - 18. Inheritance
codebasics
Julia Tutorial - 8. begin and (;) Compound Expressions
codebasics
Python Tutorial - 12.1 - Install Python Module (using pip)
codebasics
Julia Tutorial - 9. Tasks (a.k.a. Generators or Coroutines)
codebasics
Julia Tutorial - 10. Exception Handling
codebasics
Python Tutorial - 19. Multiple Inheritance
codebasics
Python Tutorial - 20. Raise Exception And Finally
codebasics
Python Tutorial - 21. Iterators
codebasics
Python Tutorial - 22. Generators
codebasics
Python Tutorial - 23. List Set Dict Comprehensions
codebasics
Python Tutorial - 24. Sets and Frozen Sets
codebasics
Python Tutorial - 25. Command line argument processing using argparse
codebasics
Debugging Tips - What is bug and debugging?
codebasics
Debugging Tips - Conditional Breakpoint
codebasics
Debugging Tips - Watches and Call Stack
codebasics
Python Tutorial - 26. Multithreading - Introduction
codebasics
Git Tutorial 3: How To Install Git
codebasics
Git Tutorial 1: What is git / What is version control system?
codebasics
Git Tutorial 2 : What is Github? | github tutorial
codebasics
Git Tutorial 4: Basic Commands: add, commit, push
codebasics
Git Tutorial 5: Undoing/Reverting/Resetting code changes
codebasics
Git Tutorial 6: Branches (Create, Merge, Delete a branch)
codebasics
Git Github Tutorial 10: What is Pull Request?
codebasics
Git Tutorial 7: What is HEAD?
codebasics
Git Tutorial 9: Diff and Merge using meld
codebasics
Difference between Multiprocessing and Multithreading
codebasics
Python Tutorial - 27. Multiprocessing Introduction
codebasics
Python Tutorial - 28. Sharing Data Between Processes Using Array and Value
codebasics
Git Tutorial 8 - .gitignore file
codebasics
Python Tutorial - 29. Sharing Data Between Processes Using Multiprocessing Queue
codebasics
Python Tutorial - 30. Multiprocessing Lock
codebasics
Python Tutorial - 31. Multiprocessing Pool (Map Reduce)
codebasics
What is code?
codebasics
Python unit testing - pytest introduction
codebasics
More on: LLM Foundations
View skill →Related Reads
🎓
Tutor Explanation
DeepCamp AI