# Advance Machine Learning

- **Course:** 6103 - Advanced ML
- **Recorded:** 2026-10-17 09:25
- **Transcript:** 1208 segments, 10994 words
- **Made by:** colab import

---
Thank you. Okay, so good morning all. Yeah, so there are less participants is there. Okay, so we'll just wait for two to three minutes. Let everybody have to join. Then we'll start session. Yeah. Good morning. Thank you. Okay. Okay, so we'll start the session. Okay, so we'll start the session. So I'm sharing the screen. things about the things about the things about the basic thing about the NLP. So we'll have the coding session. So before we are going to the coding session, we'll just take the 10 to 15 or 20 minutes, the theoretical things so that at least you can understand what are the more important thing that we need to understand when we are talking about the NLP. So NLP is just like we need to deal with the text data set. Okay, so now a days this is the very important thing. So this is the input source. Okay, so input data will be the text. So logistic and linear regression where we had seen the numerical kind of the data is there.

Okay, or we can say the statistical data set is there. Okay, but now we are moving with the text data set. So if the text data set is there, then we need to deal it with the NLP that can be the natural language processing is there. So in the NLP if we need to. So what are the different thing in the NLP? You can use the logistic regression. You can use the different kind of the transformer. You can use the different kind of the deep learning model. You can use the different kind of deep learning model. You can use over the text data set. But what are the different thing that we need to understand? That means we need to focus on the preprocessing kind of thing. We need to pre-processing kind of thing. That will be the NLP. Okay, so what is this thing? So there are the two different. The first preprocessing technique in the text data set will be the tokenization. Okay, that will be the tokenization. And second one will be the stemming and limitization.

Okay, this is the stemming and the limitization. So these are the two text normalization technique is there. And what are the normalization technique is there? We need to transform the data. So that is comes under the data transformation. So we will use the stemming and the limitization. So now we need to perform the normalization. So we have the normalization performed on the numerical data. What is this? That particular thing? How did we perform? We performed the normalization. Just like L1 normalization, L2 normalization. We have the rescale the data set going between the 0 to 1. But here on the text data set also, we need to perform the normalization. Normalization means we need to rescaling the thing. So in the text data set, how we can rescale? So this is just like this. So before the normalization, suppose that the text data set will be the connect. One of the data set is connected. Now connecting and the connection all are having the different different form of the connect.

Okay. This is the first form, third form. That is the verb thing or that will be the adjective. So there are the different different thing is there. So we need to perform the normalization. That means a system that can make the related form of the common form. That means we need to know the root node. Okay. So we can use the normalization technique. Okay. Normalization technique of pure meaning. We have to convert. Okay. So we have to convert. So text data set to convert. How we can deal. So connected, connected, connecting or connection. If we are applying the normalization over there. Then we can get this root word is the connect. Here the root word is connect. Here the root word is connect. Here the root word is connect. Here the root word is connect. So that is all called in this particular thing. Now normalization. So normalization can help the reduce the vocabulary size. And it can improve the consistency. So yeah.

Vocab size increase. Improve consistency. We will use. Okay. So normally where we can use such kind of the thing. So wherever we are using the text data set. That means during the search engine. When we need to retrieve the information. We need to classify the text. We need to have a document clustering. So in all the place. In all the place. We will use the normalization. So there are the two things. There data comes under the normalization. The first one is the stemming. While the second one is the lemmatization. So what what the both things are doing. It can both reduce the variation. Okay. Reduce word variation. But they use the different method. So stemming is the different method. And lemmatization is the different method. But they both are doing the reduce the word variation. The normalization we have to use. So one method is the stemming. And second method is the lemmatization. So both methods are like this.

So this is called as a normalization. Okay. So now the two important concept is there. That we need to understand. Because that is in your slab. That will be the stemming. As well as the lemmatization. So what is the meaning of the stemming. Both can do the same kind of the work. Stemming jho kam karega. Wohi lemmatization bhi karega. But their method will be the different. And their output will be the different. Okay. So stemming is usually remove the prefix and suffix. So it is a rule based kind of thing is there. Okay. Using the rule or heuristic. Rules or heuristic ke hesap se. It will remove the prefix as well as the suffix. Toh kujh bhi remove ka sakta hai. It is like a. Kabhi prefix or suffix or rules ke hesap se. Okay. It will doing that particular things with the help of the rule. Okay. So how it works. Kaysay kaam karta hai. So it will trim the word ending. Jho last ki jho ending hai. Jho trim kar djeta hai.

And it can apply the simple transformation rule. Toh there will be the fix rule is there. Accordingly we need to remove. Okay. Does not necessary the dictionary ki meaning check nahi karega. Woh kisi bhi tariqa sa prefix ho suffix ho cut kar dhega. But it is the very fast and computationally lightweight is there. Okay. It is that kind of the thing is there. So if we are going ahead and if we need to see. If we need to see that particular ki example kaya. Just like if we are given the studies. Studies in our data set. And if we need to perform the stemming. Then it is removing the yes. Okay. It can remove the yes. But here the play. But it is not considered any dictionary. So it is not dictionary check nahi kari. Without dictionary it can convert or it can do that particular ki study. Study. But this is not a correct study spelling. Study spelling is like this. The end by is there. Because it is working like a rule.

Or heuristic ke hesaab se karega. Because it does not check the dictionary meaning. Toh ye itana efficient nahi hai. Okay. Just like the connected. Toh connect de diya. Last ki ed hattaa diya. Yaha ing hattaa diya. Then it is fine. And relational. Toh relate kar diya. That means relate ki spelling will be this one. But it can remove this kind of the thing. Okay. It can remove this kind of the thing. So this is called as a stemming. So stemming is may not be the valid English word. Kyun ki humara studies ko study kar diya. With the one stemmer is there. Toh stemmer is just like the one kind of the thing. Or one kind of the package. Jho stemming ko perform karta hai. Okay. So the goal is the group related form. Not always the dictionary thing. Toh ye kya kar raha hai. Is tarikay se work kar raha hai. Okay. Is tarikay se work kar raha. So there will be the one algorithm is available. And that algorithm will be called as a porter stemmer.

Okay. So that is called as a porter stemmer. Toh porter stemmer will do this kind of the thing. But if we are applying the lemmatization over there. Toh hum ne dekha we need to do the normalization. That's it. Abhi hume normalization karna hai. Khoj words ka cut karna hai. Us ke common form mein convert karna hai. Toh stemming kya karta hai. Rule based thing is there. Or it can remove any kind of thing. But lemmatization. What is the lemmatization? Lemmatization uses the vocabulary. Or morphological analysis karega. And it can find the lemma. Lemma is just like there will be the rule is there. And according to the rule it can convert. Okay. It will check the word. Okay. And it can be based on the dictionary form. The dictionary form is called as a lemma. It may use the part of speech as well as the linguistic context. Toh part of speech or linguistic context ko deega. Usually we are having the more linguistic informed than the stemming.

Okay. So that kind of thing is there. So this is called as a lemmatization. Okay. Lemmatization. So just like studies is there. So study is there. Playing play. Better. Better ko is ne kya kar diya. Good. Because better ka good, better or best. Toh yadi is ka root form check karna hai. Better ka. It is always the good. Okay. M. P. Bean. Okay. So the b ka yadi root form change karna hai. Toh it is like a m. So it will work like a. To use the vocab and morphological thing. Okay. Toh morphological and vocab ke hesap se it will do the thing. Now. The context matter. Context matter ka matlab kya hai. The word saw. Okay. Just like we had. We have to know. See saw saw. Okay. Run. Ran. Okay. Like this. So yadi is ka root form chahiye. So the limitization perform in it is the better manner. Comparatively. We are not saying it is 100% true thing. But comparatively the limitization perform the better thing. Because it is working under the vocab or morphological analysis.

It is performing that particular thing. So that is called as a limitization. So if we are doing the comparison between this thing. Then how we can make a comparison. It is the rule based kind of thing. There will be the one question. Is there any. If there any new word is coming. Which is not the lemma dictionary. Then how. So it is not handled. It can perform the illogical thing. It can perform the illogical thing. Because it is not the dictionary word is there. Because it is work on that. Data set. Because we need to. There will be the NLTK data set is there. PUNCT library is there. Because all the word are stored there. Because it is working over the data set only. Okay. It is working over the data set. So we need to put that particular value into the PUNCT library. So PUNCT library as well as the NLTK library are working. And data work under this. Okay. So that is the one kind of the thing is there. So side by side comparison.

If we are doing the comparison. Then there will be the stemming is there. As well as the lemmatization. Stemming is working over the rule stripping. That is the direct affix or suffix. That is the rule here. And here is vocabulary and morphological. Now output may not be the real word. But here is usually a dictionary lemma is there. Speed. It is faster manner but it is slow. Okay. Linguistic accuracy less precise. Usually more precise. That is the condition. That is the condition. That is more precise. Not the 100% precise. Okay. 100% precise. Because. But question is asked by the Anuja. If the new value or the new word is coming. Then what happened. Yes. It is. It will not work. Okay. So it is not like this. Okay. But we can put that particular word in the library. But that will be done by the python people. Okay. And they are creating the new version of the database. Okay. So they are doing like this. So. The best fit. The large scale retrieval where the speed matters.

So we need to use the stemming. But whenever we are using the NLP related task. That means the very sensitive task is there. Then we need to use the lemmatization. So here we are writing neither method is the universally best. Choose based on the task language and accuracy. That means we cannot say. Stemming is bad or lemmatization is good. It is based on the condition. Or it is based on the application. That we need to apply this. Because lemmatization is little bit slower. When we are comparing them with the stemming. Does stemming also work in the other language? Yes. 100% it is working. Every data. Every language have its own dictionary is there. Okay. And inside the NLP it is already there. Hindi ka hai. German ka hai. And there are Bengali also. So there are lots of language. Data set is already mentioned. We need to import that particular data. Or uske heshaafse we need to perform the stemming as well as the lemmatization.

So just like I am talking about the many times I am talking about the NLTK. So NLTK is the one kind of the database is there. So this is how we need to download. That pip install NLTK first we need to install. Then we need to download the word net data. Okay. Word net data is there. And we need to import. import. To aap humne kya kar diya. Yaha par under the NLTK stem. That means we need to do the portal stemmer as well as the word net lemmatizer. So this is the lemmatization. If this is the portal. Now inside the NLTK the corpus is there. Corpus is just like a database. Okay. We need to import the word net. Now if our word is like this. If we need to apply with the help of the portal stemmer. Then this word is going in the. So this is the. Ishtadi. Okay. And what is this ka output kya aega. Ishtadi. Okay. It is like this. So we need to find out the stemmer word also. And the lemmatization word also. Okay. So this is the example of this.

So it is also the work example is there. So if it is like this. So we had written the complete thing. Okay. Complete thing. So it is like this. Sometimes that play is just like the playing is just like the playing is only. So it is based on the different different lemmatizer or different different stemmer. Because only the portal stemmer is not only the stemmer. There are lots of other stemmer is also there. Similarly, the word net lemmatizer is not only the lemmatizer. There are other lemmatizer also is there. Okay. What are the interpretation? That stemmer output depend on the algorithm. For word net lemmatizer default the noun unless the part of speech is given. So yeah. Yadhi ham yaha par part of speech de de de te. Okay. If part of speech de de te. Yaha mein with the verb POS playing can be become the play. So yeh yadi bol de ta. If we need to convert it into the first form of the word. Verb. Tab yeh playing.

Hata ke play kal de ta. With the noun POS is given. To mice can become the noun. Mouse. To yadhi ham yaha par part of speech bhi de na chalou kal de te. Then accordingly we need to get. To ab hame what you need to consider. So we need not to do the things in the. In the. In blind weather. Okay. Blind weather. We need to give the part of speech. Okay. And we need to do that particular kind of the task. Okay. So part of speech de na pade ga. Accordingly we need to do that particular thing. So the quick decision lehna hame pade ga. Then we need to choose the limitization. Either with the stemming or the limitization. What things we need to do. Okay. What things we need to do. Okay. So yaha par kya likha hua hai. This is the one. That means output can change with the part of speech. Here. We have to do that particular kind of the task. Okay. So part of speech de na pade ga. Accordingly we need to do that particular thing. So the quick decision lehna hame pade ga.

Then we need to choose the limitization. Either with the stemming or the limitization. What things we need to do. Okay. So yaha par kya likha hua hai. This is the one. That means output can change with the part of speech. Yaadi haa part of speech mention kar di gahi ki. It is the first form then we can use. The second the word net limitization need to be appropriate poa. Yaadi haan par hum ne poa z day diya. That will be the part of speech accordingly. It will do the thing. Okay. So in practice how significantly does correct part of speech taking impact. The hundred percent it is impacting. Yaadi if we are assuming ki yaa pa just ni maai se. Okay, maai se. Yaadi is koo noun given kar diya. if it is our subject just like i am talking about the sorry there will be the one sentence is there that ram give book to sita if we are not mentioning the ram as a noun here okay if we had applied sorry sorry sorry yeah okay noun mention nai kiya so it will cut sometimes the

ram is a ra okay it might be possible so noun here so noun here we had mentioned the verb so verb if it is it is like the giving okay giving book to the sita so yeah just like i am i need to return the ram gives book to the sita so it gives will be converted into the give ki haan hume verb chahiye to next time jab hum is ka tokenization karenge tokenization means we are cutting down to ram i got a sentence then next time it is taking as a give we it is not coming as a gives ki gives to koi data set ka party nai hai we need to convert it into the certain word then we need to write the book then we need to write the sita hum we can remove the two because this is the keyword so this is how that all word are making the impact during the accuracy okay so this is just like a data pre-processing is there that it is having when we need to do the data translation sorry if we need to do the machine translation ki mene ye this will be the english language okay this will be the english

language ki ram gives book book sita okay but if we need to convert it into the hindi to sabse pehle kya karna padega in ke sorry if it is like this it is the english sentence ki ram gives book book to the sita okay now we need to perform the tokenization phir hum us ko in hindi me convert okay can we apply both the set of the word for example first then it will help yes you can do you can do it is just like a data pre-processing everything is optional we are not saying you can apply the multiple time limitization but only it will affect the model computational thing okay now do not think about much i am going directly to to the coding so that you can learn something okay yeah so stemming we had already understood ki haa stemming hum ka sakti last ka heuristic approach follow ka sakti last ka kuch worked ko chop ka sakti in the hope that we can achieve the goal in the accurate manner so the first thing first this is the thing so we are

applying under the nltk dot stem we need to import the porter stemmer to hum kya karna hai porter stemmer karna hai under the nltk so nltk is a library so how we can install the pip install lntk that i had already showed in the uh slide okay so we need to perform the stemming or there will be the another stemmer is there that will be the lancaster lancaster stemmer so we had imported the two stemmer okay there will be the different different algorithm is there the portal stemmer ka understanding little bit different or lancaster stemmer ka thoda po different ho sakta hai but it will apply both are working under the stemming tag okay donno stemming ka kam kareinge now we need to use the one variable that will be the portal so portal is comes and we are taken the portal stemmer is a portal or lancaster stemmer is a lancaster like this now we need to print okay print karna hai porter stemmer now we need to

make the thing ki abha hamai kate word kates okay it is just like ki if we suppose we you need to consider the one application one application one application is just like a machine translation okay english language ko hindi language me convert karna hai just like a text to text conversion karna hai but english to hindi karna hai okay it is like this so it is there are multiple option is there there are multiple application is there related to the nlp jitna bhi chat gpt you are using that will be the question answering okay in the text form okay and jitne bhi ai hai hai everybody is talking about the text so first it will convert the value into the stemming or limitization subsepele tokenization perform kata hai then only it will work so the it is just like print kates to yaha per kates given karne ke baad porter stemmer kya result zeta hai that we need to see then after that the travel then after we need to give the travel stemmer and it is like this traveling traveled so this is this four

are given to the porter stemmer now the next one is the we need to give it to the lancaster stemmer so what it gives okay so lancaster stemmer is also giving the sum of the answer while this is also now you can see this four are the result of the uh porter stemmer and this four are the result of the lancaster stemmer so although the result will be the very was same because it is working under the stemming okay so now you can see kates to kates se a sata diya because we are having the kate word in the nltk that's why we are performing the normalization okay kates ki meaning nahi hain hain hain hain kates ko first we need to convert with the kate then only we need to apply the thing okay why we are doing the normalization this is the this is the main thing the lancaster and the porter stemmer there will be the no difference is there it's just like a two different packages there okay it is having the

two different package okay it is not having the good the much difference is there हमारे पास difference नहीं है but यह दो अलग-अलग algorithm है for doing the stemming because stemming is the bigger thing जो same work करेगी rule based or heuristic पे but there will be the two ways there or there are other ways also there just like I had created the Lancaster and you had created the Porter but both are working under the stemming category okay so there will be the no differences there okay sir it display the related work about the given word yes 100% related word related word अभी हम इसको related word इसको थोड़ा सा change करते है root word बोलते है root okay root word तो हमें सही word है यह root कि playing है तो playing data set का part नहीं है playing नहीं समझेगा model it will understand only the play okay it will only understand the play that's why we need to go ahead okay इसी लिए हमें इस तरीके से काम करना आप देखो हम

पूरे sentence का streaming perform करते हैं okay now we are having the complete sentence इसको हम हिंदी में convert करेंगे तो हिंदी इस इस इन complete architecture बट पहले वी निग तू कनवर्ट देटा और वी इन्टु दा और पहले ता first thing is that we need to apply the normalizations though how we can apply the normalization so it is like this so from nltk.tokenize we need to import the sent tokenize and the word tokenize कि ये sentence को भी tokenize का सकता है word को भी tokenize का सकता है okay so there are different different thing is there okay so yes there may be the might the minor difference is there okay there will be the minor differences there it will give the different different value so Lancaster is little bit good in comparison to the water steamer because water steamer is the first steamer algorithm but Lancaster is little bit good in comparison to the water okay it is just a different different thing okay but it is work

under the stemming only okay it is just like an advanced version okay that because package toh different type के बन सकते है the matplot lib भी बही काम करता है c1 भी बही काम करता है c1 थोड़ा अच्छे तरीके से कर सकता है but matplot with lib will not do that particular task okay now now the next thing is that we need to tokenize the sentence then we need to tokenize the word also okay why we need to do the transformation to the root word that I will tell okay the you had asked the Mohit has asked one kind of question कि हम token हम क्यों transform कर रहें because the model will not understand the playing playing word को समझेगा ही नहीं model will understand only the root word वो सिर्फ root word को समझता है because our thing are only based on the root word तो यहां यदि हमने playing दिया studies दिया यदि इस तरीके के word देंगे तो model will not understand so पहले इसको कनवर्ट करना पड़ेगा डेटा को इन रूट वर्ड थेंगे तो यह नहीं अनली

model will understand that's why we are doing that particular thing that is the things that is the most important process okay that's why we are doing that particular thing now we need to apply the same sentence then we need to give the sentence now we need to convert the token okay token क्या होता है simplest word is there ram is playing basketball तो ram play basketball yes that's it that's it that is a hundred percent thing क्योंकि वो यह सब चीजों को समझे रही नहीं okay yes so now we had tokenize that particular thing tokenize का meaning क्या है cut कर देंगे single single words that's it okay now we need to use the word in the token word then stem sentence dot append then porter dot stem word then we need to write the stem sentence dot append then we are returning and join the stem sentence so this is like this is the just one thing that we are using for tokenization sentence को भी tokenize कर सकते है वो word को भी tokenize कर सकते है now

after that after we are converting the we are writing the sentence हमने sentence यहां पर कर दिया okay now this sentence will be put into the x तो यहां पर x में हम यहां पर इंपर इंपर इंपर दे रहे then we need to print the sentence so the sentence will be this particular and x will be the we are using the porter stemmer so yes you can see yes you can see here then after this we are only working hi after that we need to do the vectoring hundred percent we are converting it into the numerical value hundred percent hundred percent hundred percent okay the thing in the theory you had understood कि यह जो सेंटेंस था राम प्ले बास्केट वाल तो यह हमारा my specific की हना कनिवा राम इसके बाद हीप्ड़ वी रां बेक्ट यह मोर्क्तर माइशन भ सेच मांज्क हीआ ह्म इंबेडिक हीप्डिक के फिर इसको बोलेंगे हम इंबेडिक pythoner is converted as a python because the uh model will understand only the python then r very a very intelligent intelligence okay so it is not going the right thing

so there will be the too many uh so i will complete just this thing then end then work then vary then pythonly okay and now so this is just doing the thing but it is going in the faster manner faster manner okay but it is not the correct thing so this is limitization always we are preparing the normalization okay sorry we are always preferring the limitization so i am stopping here i am taking the doubt so shriya has doubt like with this data pre-present technique can you tell an overview of the pipeline this will follow this nlp task using the some example these are the only this is only the pre-processing kind of thing i am not taking the uh data into the model i am not taking the model level we are taking only the data and pre-processing understand this whatever model i will tell in the next upcoming class just like cnn rnn transformer all model can be applied after using this particular thing what you need to have if you need to do the

machine translation then you need to take the input input tokenization tokenize what you need to do the normalization you need to perform with the limitization and then you need to go ahead and you need to use the model okay so if you have a doubt i can write something i am can write something okay yes so your hair you can see the input okay input is there that will be any sentence then we need to do the tokenize tokenization perform tokenization information ke paul data ki pre-processing karna up pre-processing me you haa pere hammis stemming or limitization use kar rhai after that we need to apply the model tho ya haa pere hammes cnn rnn or third one is transformer kuch we use tokenization is just we are converting ram is playing cricket okay so pahla token kya ho gaya ram then second token kya ho gaya is then third token kya ho gaya playing then next token kya ho gaya cricket okay this is the token

is ko hum convert karenge ram ko ram like this okay so that is there now one more question is there tokenization should be done before or after the stemming i hope this particular doubt will be clear is ke baad ham stemming or limitization karenge okay yes so in this notebook file available now in the moodle to go through in the parallel or the gesture we need to go okay okay i'll i'll provide i'll provide after the class you can see when we do the limitization and stemming remove the stop word from the corpus and how to nlp word is yes there that is that all things whatever you had asked tusar everything we need to do under the data pre-processing because once we are switching to the model we can directly apply the technical thing hamei input hamara prepare ho gaya there will be the one more thing are remaining after the stemming or limitization we need to do the embedding okay embedding embedding kya kata hai ye jo word word ram isko convert kar deta hai just like

64 bit me that is one zero zero one one like this it is converting it into the something okay and that is called as the that particular thing now sir is the concept of the word embedding similar word embedding is just they are similar but after the stemming and limitization okay word embedding is just like we are converting the uh text data into the numerical data that is the word embedding okay is using more words correlate with the more token uses hundred percent hundred percent it is using like this okay it can more word correlated to more token uses hundred percent hundred percent so this is there now there will be the another technique is there that will be the limitization because stemming is not working in the accurate manner stemming achse se work kari nahi rahi hai toh hum kya karte hai lemmatization pe kar rahe hai because lemmatization can see the bokeb into the dictionary or morphological analysis perform kar rahe okay just like lemmatization usually referred to doing the

properly just to use the vocab and morphological things so it will not remove the thing into the blind manner it will see the dictionary and according to the lemma it will decide okay sir you said for the lemmatization pos can also matter but if we are providing the token and not sentence then how pos will be identified by the lemma model we need to give the input hummel pos within in the here the pos thing is there okay at last here the pos thing is there okay just wait just wait at the last there will be the pos thing is there so you can understand once this particular slide is completed this particular things are completed definitely you will understand this okay every answer is there sir so my name is abc i live in india my name is this is this i live in india sir i live in india repeat two times then please let me know tokenize also happen the two times yes it is going the two times this this particular answer is also in the upcoming uh upcoming wording thoda 10-15 minute

this particular answer is also there so just wait okay now we need to use the word net tokenization okay now sorry word net limitizer so this is the limitizer okay now we had used the limitizer now we had used the sentence so we had used this particular sentence now we are having the punctuation so the punctuation we use okay uh so if the sentence is a word like don't yes it is there right now you can see right now you can see here the punctuation is there okay we had this punctuation is also matter because do alag se aega or not alag se aega because if with the do not ko yadi do convert kar diya to it will the useless thing completely meaning ko change kar dega okay so yaha par we had convert the sentence ko tokenization kiya then yaha par humne word ko remove kar diya koon se word ko remove kar diya jho bhi humare punctuation se related that's the sentence word is there then yaha par deko now this sentence word is there and

kis format me kar diya word or lemma lemma humara kya hai so this is the word and this is the lemma then word in the sentence word we need to apply the lemmatization over the word so now you can see the complete sentence is there he was running and eating at the same time like this okay now you can see the first thing is tokenized what tokenized kya hoga the he is the first tokenized token the second token is was the third token is running the next token is and the next token is eating next token is at the same now you we are applying the lemmatization lemmatization now you can see the lemmatization ne kya kira he ko he kar diya but boss ko kya kar diya walker diya that is the wrong thing to lemmatization bhi hundred percent successful nahi hai but it is little bit same little bit good kyunki yaha running ko isne running hi kiya run nahi kiya why because we had not given the part of speech we had not given the

part of speech we had not given the part of speech then it will convert the run into running into the run so what is the next thing that when comes it away with that thing that comes in our mind that means in the data set we need to give the word sorry we need to give the word so it is like this the off is off heavy it is heavy it swimming is swimming after is after playing is playing long is long so only it is giving this particular the word is wrong okay so it is like this so in the our uh in the uh our code output you must be wondering that no actual root form has been given okay this is because they are given the without context okay we didn't give the any context so you need to provide the context in which you want to lemmatize and that is the part of speech so we need to provide the part of speech then that is done by giving the value to the part of speech parameter in this so now you can see now you can see you can see all the things

lemmatization we need to use the same thing the same word only what we are doing here parameter change here part of speech ko humnne verb consider ker liya ki abh humnne verb we need to consider that we need to consider you need to see he ko to he kiya was ka root verb is the b okay yes it is there it is correct one running car is run okay eating ka eat a gya okay and there are swimming ka swimming ka swim a gya so now the we had given the part of speech and we are considering ki humnne verb ko consider kerna hai okay we need to consider the verb so part of speech will be the verb so we are considering that particular thing that will be the pos is the verb okay so now that is there now that is there so this is how we need to apply the lemmatization okay this is how we are applying the lemmatization so whatever question you had asked the nishant has asked some question and that can be the like this ki humnne pos batana padega if we are not telling ki humnne pos use

karna hai then it is not uh the thing woh kya karega actual root form me convert in hini karega because we had not given any context okay so is it necessary to specify the pos during the the lemmatization again it is not the necessary process but it is the desirable process okay necessary toh kuch hota hi nahi machine learning machine learning is not working in the necessary is a thing it is only the recommendation or desirable because so this is that particular thing okay now one so this is all about the pos okay sorry pos is there toh pos ke baare meh humnne pos okay now we understood the pos up pos ke through pos limitization ko affect karra hai yes it is hundred percent affecting the thing or yadhi pos affect karra hai toh accuracy be affected yes it is hundred percent affected okay so it is the answer now somebody has also also asked about the token count ki humnne jesai doh bar use karra hai okay doh bar anybody has asked

ki yadhi ham bar bar doh bar same word ko use karra hai toh wo tokenization meh doh bar lega yes jeevan has asked that particular question okay toh yes it is counted the two time abo kya se count karna hai that means the token count is also metas okay toh what we need to do the nltk dot tokenize so we need to count okay so we need to import the counter and counter is under the collection so this is the easy process that we need to import the count now we had used the one file okay file ko use karna hai and what kind of the file is there we need to open the article dot txt just like i had created the one file that is the article dot txt and i need to import and i need to give the write function sorry read function so read karega then article equal to f dot read so yaha se text file read ho ghi ab after the text file read abh humko tokenize karna hai toh this particular article dot txt ke anndar we are having the complete data oh the hummye usse read karna hai now the token is equal to the word

tokenize and we need to give the article and we need to give the or we need to print the token ha mein token ko print karna hai hai abh token ko print karne ka matlab hai we have to see now we are having the sum sum lower token is also there okay lower token is also there so the lower token is looking like this okay the lower token so this is the lower token then we need to print then print the lower token okay now the bow that will be the big of word okay now we need to give the counter this is the big of word concept is there there will be the one way of word is there and way of word if we are having i live in india and now india is the best country like this this are the sentence so i here we need to write one time here one time one time here two time like this okay it is like this so one question is there will there will be any difference if any if we are doing limitization of the single word as compared with the full sentence with the pos enabled uh no there will be the no

differences there but if you are given the complete sentence then only the uh stemming or limitization perform because for the limitization and stemming we need the prerequisite condition is that the tokenization should be there tokenization pay because single single word uh uh is stemming or limitization now you can see we are doing we are doing now we need to print the most common 16 word is there so that is the different story but you need to understand this is the tokenization okay tokenization what tokenization meaning kya hai you can see okay here you can see so there will be the one of the concept is there that means sorry one of the file is there where welcome to natural language processing it is one of the most exciting research area as of the today we will see uh how python can be used to work with the text file like this this is the complete sentence so humnne kya kya kya hi this is not bad right now yams kya kya kya kya kya kya kya kya kya kya kya kya kya kya kya iima you

Now, what we are printing, what we are printing, we are printing the lower token. Then, what we are printing, what we are printing, we are printing the lower token. So, welcome, which was the capital, we had small. So, this is the lower case, yes, it is converted into the lower case. Okay, so, yes, you can see this particular, whatever the data, the shared by the Anujai, because it is the too long, I can move ahead, you can read, okay, you people can read. Yeah, so, now, the next thing is that we need to count the token, okay, we need to count the token. So, two is coming two times, off is coming two times, welcome is coming one time, natural is coming one time, language is coming one time, so, it will count that particular thing. So, token count is also matter, so, whatever I am telling, that all can be the data pre-processing kind of concept is there, okay. So, one question is, in the real world AI project, do companies still use the stemming or, yes, everybody is using the limitization in stemming,

it depends on the condition, it depends on the condition, it depends on the use case, yes, it is very, very correct, okay. Now, now, the next pre-processing thing that we need to understand, that we need to do, now, what we need to do, now, what we need to do, next target हमारा क्या है, next target है हमारा, जो stop word से, उनको reboot करेंगे, ठीके, तो first thing is that, we need to identify the stop word, so, stop word के लिए, we need to identify that, because inside the NLTK, all the stop word is mentioned, okay, now, we need to download the stop word, and we need to apply the stop word, so, here, both the things, you know very well, कि हमने word net का limitizer यूज किया है, and word का tokenize किया है, now, from NLTK.Corpus, we need to import the stop word, and हमने collection तैयार किया है, everything is same, this four are same, only one thing we had updated, that will be the stop word, okay, yes,

now, the same file we need to read, yes, now, the same tokenization, we need to perform, yes, now, the main important thing, that we need to use the stop word of the English language, English language, तैभी stop word है, we need to use that stop word, okay, stop word को हमने निकाल लिया, then, lower case में convert कर लिया, yes, then, alphabetical, alpha only words को, use कर लिया, okay, alphabetic words को, use कर लिया, now, the main concept, we need to remove the stop word, जितने भी stop word है, we need to choose the alpha only, that means, alpha only का मतलब क्या है, numerical words को, use नहीं कर लिया, जैसे, I need to write, कि Ram has given the 10 books to sita, 10 books, तो 10 को हटा देंगे, यदि 10, it is written in the alphabetically, then, it can consider, otherwise, वो 10, यदि वो numerical में लिखा है, then, we can remove that particular, when we had used the alpha only, okay, तब हम alphabetical number को ही,

use करेंगे, and alphabetical number से ही, हम English word को, remove कर देंगे, then, we had applied the limitizer, then, we need to showcase, the limitizer, without the stopping word, and after that, we need to give the count, and the most common 10, we need to print, okay, so, that is the thing, all the stories are same, only, we had used the stop word, और जो भी English language के अंदर stop word है, उस stop word को, use करना है, that's it, okay, now, we have this, now, we have this, the complete data set is there, yes, now, इसके बाद, what is this, this is the lower case, okay, lower case को, use कर लिया, now, the next thing, next, the, we are using the, alpha only, alpha words को, ही use कर रहे हैं, तो alpha words का, use कर रहे हैं, यहां से remove हो गया, dot, okay, we had removed the dot, okay, we had removed the dot, sir, we asked you to upload, the notebook, okay, so, request you to upload, before the class, share, okay, fine, I'll take the,

first five minutes, to upload the thing, then only, we need to start, okay, next time, I'll take care, okay, next time, I'll take care, okay, so, if I forgot, then, just first statement, you need to write, please upload the IP, by and by, then only, you need to work, okay, so, definitely, I'll do that particular thing, वो उसी class में, just five minutes पहले, I'll share, so that you can, but I'll provide, just 10 minutes, after this, just, you need to take the, 10 minutes, you can get the thing, okay, but 100%, next time, I'll give, no issue, so, the first is, the sentence, second is the, lowercase, third क्या हो गया हमारा, हमने alphabetical number को, remove कर दिया, तो alphabetical से, sorry, alphabetical को ही, use किया, while all the other can be removed, dot या comma, या fill in the blanks, all can be removed, now, the next, now the next, will be the, this particular, okay, this particular, and what is this, now you can see, alpha हो गया, that will be the,

no stop word, एक भी stop words, use नहीं होगे, so whatever the, English language में, stop word है, just like, off, two, that all thing are there, now, at the end, what is there, the, stop, we need to remove, the stop word, so here you can see, we are not having, the, off हो गया यहां से, is हो गया, okay, to हो गया, the हो गया, is हो गया, okay, this all can be remove, and after that, we need to apply the, limitization over there, then at the end, we had used the, count, okay, now we had used the count, so we got each and everything, एक data set है, small में convert किया, then alphabetic, alpha को रिमूट किया, then stop word को रिमूट किया, then after the stop word, next one will be the, limitization पर फॉट किया, then after that, we need to count the particular value, okay, count कर दिया, and that all the things, that is called as a beg of word, okay, that is a beg of word, that is a B-O-W, that will be the beg of word, so this all thing we had used,

okay, now we need to write the NER, that will be the, name entity recognition, okay, name entity recognition, okay, name entity recognition, we need to use the name entity recognition, using the NLTK, so NLTK के through, we need to use the NER, so what is the NER, you are now going to have some fun, with the name entity recognition, so name entity recognition, is the very much important thing, is there, just like Ram, gives book to the Sita, so Ram is a noun, okay, the when, or that will be the subject, okay, that is the subject, so noun is a noun, sorry, Ram is a noun, with the subject, and is, so why transformer is required, where the, I will tell that particular answer, I will tell that particular answer, during the transformer, first we need to understand the CNN, then RNN, then we are moving to the transformer, you will definitely get, that particular answer, once I am telling the CNN, and RNN, in the next class, we will start the CNN,

I will teach the RNN, I will teach the transformer, okay, I will tell each and everything to you, okay, अब name entity recognition के लिए, what we need to do, under the NLTK, we need to use, the first we need to use this, then inside the NLTK, there will be the average perceptron tagger, okay, एक तो ये library है, एक तो maxent, need checker है, then there will be the word is there, so this all can be there, okay, and we need to use, so we need to import the NLTK, and we need to perform this, so we are writing the true, okay, yes, now, we need to apply, this particular slide, this particular text file के उपर ही, हमें क्या perform करना है, all these things are same, all these things, whatever you had used, the everything is same, but हमें यहां पर क्या करना है, we had created this particular thing, that is a new, that means, we need to make a name entity recognition, कि हमें जो भी word यूज कर रहे हैं, उसकी entity बताना है, what is that particular thing,

so here, everything is same, now you can write, the welcome, welcome is a noun, and NNP is a, different kind of noun is there, so here you can see, NNP, N E, NNP, is like this, okay, just like, what is the NNP, in, what I am saying, the NLTK, in named, entity, entity recognition, why I am searching, because there are lots of thing is there, okay, so just like, you can see, there are the different, different thing is there, I don't know, where we are getting, there are lots of, dictionary thing is there, okay, where, what I need to search, it is not mentioned, what is NNP, N E, actually there are lots of thing is there, N N P, okay, just wait, N E R, okay, yes, it is just like, a proper noun, with the singular is there, okay, it is just like, N N P, stand for, that is proper noun, and singular is there, so, there are different things is there, okay, there are different things is there, so, what is the N N P, what is the N N E, N E R, का क्या है जब हम POS taking करेंगे तब हम उस word को NER से भी करेंगे वो linguistic

feature बताएगा कि वो person है location है organization है क्या है वो okay this all things are telling by this okay that's why that particular things are relatively important to NER क्या बताता है name entity recognition but I didn't remember what is the NNP what is the any they okay so this all things are there just like यहां पर चंक लेवल पर any लिखेंगे जो भी NNP होगा we need to write कि यदि हमको इसमें से noun को ट्रिक करना है with the singular manner then we need to use this particular thing so this will tell the name entity recognition so what are the things that are important in this particular data pre-processing that I will tell but first I need to take one question sir in the previous example how was also removed in the how which then what why I'll also counter yes hundred percent this all can be the this all can be the stop words okay because in the English language that all can be the stop word okay तो जितने भी stop word है उसको हम

remove कर सकते हैं और stop word अलग से होंगे क्यों होंगे क्योंकि हम यदि what why और was how इनको एसा नहीं है कि यह consideration में नहीं होगा ओके just understand this particular thing just understand this particular thing यदि कहीं पर consider नहीं होंगे in the model model के अंदर consider होंगे but it is not considered in the limitization या हम बात करते है pre processing में नहीं होगा pre processing में consider नहीं होगा because यदि हम pre processing में consider कर दे then sometimes what sometimes what happened what को convert करके यह वह कर देगा that is the useless kind of thing that's why we are putting that into the we need to remove or only उन वर्ट को ही करे जिनका dictionary में meaning है okay उन वर्ट का यह stop word की meaning stop word हमेशा fix रहेगा it is hundred percent fixed thing is there okay so we need not to perform that particular thing okay so that is the story now i will tell this is the data pre processing is there okay

or we can say the text pre processing okay text pre processing so what are the important thing just like ram is giving book to sita okay this will be the input तब हम इसके उपर सबसे पहले क्या करेंगे tokenization क्या कर रहा है that will be the ram is giving book to sita this is the tokenization after that क्या perform करना है not sorry normalization okay either the stemming or limitization दोनों में से कुछ भी परवाँ करना है just like ram is give अब इसके साथ what we can do the pos ठीके pos दे सकते that is the thing now after that after that we need to use the stop word remover remove करना है कि यह इस नहों तो तू नहों तो क्या हो गया ram give book sita ठीक है यह consider हो गए now after that इसका count निकालना है यदि ram एक बार आया है give एक बार आया है book एक बार आया है like this okay like this after that count हमें एनिया निकालना है कि named entity recognition कि ram is the n np like this सबका यह निकालना है then hi this is the list of the pos take okay

yes i need to search this nishant has given yes this is the list of the pos okay then after that once once we are done we need to get and we need to convert it into the embedding okay embedding करना है जो कि तुमने theory class में you had i think you had see कि इसको ram को vector में convert कर दिया and that is the 64 bit now this input we need to give into the model okay now now the model need to be perform any kind of the application the application can be anything क्या क्या application हो सकती machine translation okay machine translation में use हो सकता है question answer में use हो सकता है third chatbot में use हो सकता है okay right now everybody is using the chatbot so हम क्या तरते एक text देते हैं और उसके बाद data की preprocessing होती है then model perform होता है then at the end answer question answer आते है question answer आते है so this is all the things related to the this is all the things related to the text preprocessing अब we had understood कि हमें text की preprocessing

किस तरीके से करना है now our main thing are comes into the picture that will be the model यह में model कौन से यूज करना है so we have to use the different model okay and just like CNN RNN under the RNN family what is there what kind of the model is there LHTM group okay this kind of the model is there or there will be the YLHTM also okay now after that the transformer is there or until the transformer what is this the GPT is there that is the part of the chat GPT encoder decoder sorry encoder decoder then next one is the part okay so that is all the things we will see in the next upcoming classes okay in the next upcoming classes oh after yes yes we got this particular so we need to at least understand yes attention is the part of the transformer attention how we seek in the seeking it okay attention self-attention all the things we will see in this particular class so that is about the thing that is all about the things anybody having

any doubt related to the text preprocessing then let me know otherwise we'll definitely move the models in the next class okay so we'll start the CNN part but CNN is working over the image data set okay image data set and image data set is directly converting it into the matrix where we data preprocessing but image preprocessing is not a big task that's why we are not telling the image preprocessing okay but i am telling little bit over there cnn may i'll tell so cnn in the next class we'll start with the cnn after that we need to see the rnn through the rnn we can perform the text also we can perform the image also but only we need the time state data over there so we'll see definitely see we'll see all the things in there because in the theory also you had started the cnn okay so once you are uh totally understand the cnn in the theory then we can see in that particular thing in the uh theoretical or in the practical part because uh the machine learning we can't understand the machine

learning without the coding we can't understand because the theoretical concept is not the big deal okay but when we are understanding the practical aspect then only we can understand like this okay so i hope that particular kind of the things works for you because in this particular subject there will be the no theory session is there sorry no practical session is there that's why we are putting the effort to put the uh every concept with the help of uh the tutorial kind of thing uh can you please repeat the nr i'll tell okay sir could you explain about the different type of the embedding model like the globe or word embedding uh actually that is the part of the theory okay so i'll tell sir that please give the some insight about the embedding because the embedding is not okay so in the next class i'll also tell little bit of the embedding technique okay no issue uh so once we are doing the transformer definitely we can go yes ravi has asked about the nr

nr ka name entity recognition that we have tokenized the ram is giving book to the sita so ram is the noun but it is the singular noun also okay so that's why that is the nnp and what is the meaning of the nnp is just like a proper noun with the singular okay proper noun with the singular that is the story okay so that kind of information also considered in this sir can you enable mic once i have a doubt regarding the paper submission in the conference actually uh that i can't say you can mail me so you can mail me uh regarding that particular thing my mail id is here i am writing if you are having any doubt then you can contact me over there uh i can write the my email id over there that is the okay so this is my email id i you i can help over there yeah yeah it is very good that this class is very useful sir able to and yes that that's why we are putting the effort and we are putting that kind of the class with this okay so yeah uh so that's it from my

side anybody having any doubt then let me know otherwise we'll end this particular class definitely you will understand the many things from this particular class i am because the syllabus is the too much okay i can able to correlate the little bit things for you okay and definitely i will provide this ip1v file right now okay so that you can able to get this particular thing okay so anybody having any doubt then let me know otherwise i am uh putting the things over there uh chat box will you be helpful to train the custom wordnet yes yes you can you can you can help the you can write the particular things into the that particular slp i had given mlp i had given now i need to give the what kind of the file nlp1 okay yes yes i need to upload the nlp so first i need to upload the slide also because the slide is also the important so yes the slide i had uploaded now one more thing i need to upload that will be the uh ip1v file in the next upcoming classes i will definitely upload the slide

before starting the class so yes yes so yes i had uploaded okay yes i had uploaded yes you can see you can see okay you can see today recording you will get you will get yes i had shared the code you can check you can check i had already shared the code okay uh now that's it from my side you can check each and everything over there i need to stop the recording so that you can able to get the recording okay yeah so thank you all thank you thank you thank you thank you so much yeah thank you all fine so we'll meet in the next week okay can you share help to sharing how we can i'll i'll help i'll help 100 percent if you need any help i had given them my email id you can mail me this i am definitely help help you out over there okay yeah so thank you so much i need to stop the recording okay yeah

