[00:00:00] Thank you. [00:05:32] Okay, so good morning all. [00:05:36] Yeah, so there are less participants is there. [00:05:40] Okay, so we'll just wait for two to three minutes. [00:05:45] Let everybody have to join. [00:05:46] Then we'll start session. [00:05:50] Yeah. [00:05:53] Good morning. [00:06:00] Thank you. [00:09:00] Okay. [00:09:01] Okay, so we'll start the session. [00:09:07] Okay, so we'll start the session. [00:09:21] So I'm sharing the screen. [00:09:51] things about the things about the things about the basic thing about the NLP. [00:09:53] So we'll have the coding session. [00:09:56] So before we are going to the coding session, we'll just take the 10 to 15 or 20 minutes, [00:10:01] the theoretical things so that at least you can understand what are the more important thing [00:10:07] that we need to understand when we are talking about the NLP. [00:10:10] So NLP is just like we need to deal with the text data set. [00:10:17] Okay, so now a days this is the very important thing. [00:10:22] So this is the input source. [00:10:24] Okay, so input data will be the text. [00:10:27] So logistic and linear regression where we had seen the numerical kind of the data is there. [00:10:34] Okay, or we can say the statistical data set is there. [00:10:37] Okay, but now we are moving with the text data set. [00:10:41] 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. [00:10:48] So in the NLP if we need to. [00:10:51] So what are the different thing in the NLP? [00:10:53] You can use the logistic regression. [00:10:56] You can use the different kind of the transformer. [00:10:59] You can use the different kind of the deep learning model. [00:11:02] You can use the different kind of deep learning model. [00:11:05] You can use over the text data set. [00:11:08] But what are the different thing that we need to understand? [00:11:11] That means we need to focus on the preprocessing kind of thing. [00:11:17] We need to pre-processing kind of thing. [00:11:19] That will be the NLP. [00:11:22] Okay, so what is this thing? [00:11:24] So there are the two different. [00:11:26] The first preprocessing technique in the text data set will be the tokenization. [00:11:31] Okay, that will be the tokenization. [00:11:34] And second one will be the stemming and limitization. [00:11:39] Okay, this is the stemming and the limitization. [00:11:42] So these are the two text normalization technique is there. [00:11:46] And what are the normalization technique is there? [00:11:48] We need to transform the data. [00:11:50] So that is comes under the data transformation. [00:11:53] So we will use the stemming and the limitization. [00:11:59] So now we need to perform the normalization. [00:12:02] So we have the normalization performed on the numerical data. [00:12:06] What is this? [00:12:07] That particular thing? [00:12:08] How did we perform? [00:12:10] We performed the normalization. [00:12:13] Just like L1 normalization, L2 normalization. [00:12:17] We have the rescale the data set going between the 0 to 1. [00:12:20] But here on the text data set also, we need to perform the normalization. [00:12:25] Normalization means we need to rescaling the thing. [00:12:28] So in the text data set, how we can rescale? [00:12:31] So this is just like this. [00:12:34] So before the normalization, suppose that the text data set will be the connect. [00:12:39] One of the data set is connected. [00:12:41] Now connecting and the connection all are having the different different form of the connect. [00:12:48] Okay. [00:12:49] This is the first form, third form. [00:12:50] That is the verb thing or that will be the adjective. [00:12:53] So there are the different different thing is there. [00:12:56] So we need to perform the normalization. [00:12:58] That means a system that can make the related form of the common form. [00:13:05] That means we need to know the root node. [00:13:09] Okay. [00:13:10] So we can use the normalization technique. [00:13:13] Okay. [00:13:14] Normalization technique of pure meaning. [00:13:17] We have to convert. [00:13:21] Okay. [00:13:22] So we have to convert. [00:13:23] So text data set to convert. [00:13:25] How we can deal. [00:13:26] So connected, connected, connecting or connection. [00:13:29] If we are applying the normalization over there. [00:13:32] Then we can get this root word is the connect. [00:13:35] Here the root word is connect. [00:13:37] Here the root word is connect. [00:13:38] Here the root word is connect. [00:13:39] Here the root word is connect. [00:13:40] So that is all called in this particular thing. [00:13:43] Now normalization. [00:13:45] So normalization can help the reduce the vocabulary size. [00:13:50] And it can improve the consistency. [00:13:52] So yeah. [00:13:53] Vocab size increase. [00:13:55] Improve consistency. [00:13:57] We will use. [00:13:58] Okay. [00:13:59] So normally where we can use such kind of the thing. [00:14:03] So wherever we are using the text data set. [00:14:06] That means during the search engine. [00:14:08] When we need to retrieve the information. [00:14:10] We need to classify the text. [00:14:12] We need to have a document clustering. [00:14:14] So in all the place. [00:14:15] In all the place. [00:14:16] We will use the normalization. [00:14:18] So there are the two things. [00:14:20] There data comes under the normalization. [00:14:23] The first one is the stemming. [00:14:24] While the second one is the lemmatization. [00:14:26] So what what the both things are doing. [00:14:29] It can both reduce the variation. [00:14:32] Okay. [00:14:33] Reduce word variation. [00:14:34] But they use the different method. [00:14:36] So stemming is the different method. [00:14:38] And lemmatization is the different method. [00:14:40] But they both are doing the reduce the word variation. [00:14:44] The normalization we have to use. [00:14:47] So one method is the stemming. [00:14:49] And second method is the lemmatization. [00:14:51] So both methods are like this. [00:14:54] So this is called as a normalization. [00:15:00] Okay. [00:15:01] So now the two important concept is there. [00:15:05] That we need to understand. [00:15:06] Because that is in your slab. [00:15:08] That will be the stemming. [00:15:09] As well as the lemmatization. [00:15:11] So what is the meaning of the stemming. [00:15:14] Both can do the same kind of the work. [00:15:16] Stemming jho kam karega. [00:15:17] Wohi lemmatization bhi karega. [00:15:18] But their method will be the different. [00:15:20] And their output will be the different. [00:15:22] Okay. [00:15:23] So stemming is usually remove the prefix and suffix. [00:15:28] So it is a rule based kind of thing is there. [00:15:31] Okay. [00:15:32] Using the rule or heuristic. [00:15:34] Rules or heuristic ke hesap se. [00:15:36] It will remove the prefix as well as the suffix. [00:15:39] Toh kujh bhi remove ka sakta hai. [00:15:41] It is like a. [00:15:42] Kabhi prefix or suffix or rules ke hesap se. [00:15:44] Okay. [00:15:45] It will doing that particular things with the help of the rule. [00:15:53] Okay. [00:15:54] So how it works. [00:15:56] Kaysay kaam karta hai. [00:15:57] So it will trim the word ending. [00:15:59] Jho last ki jho ending hai. [00:16:01] Jho trim kar djeta hai. [00:16:03] And it can apply the simple transformation rule. [00:16:06] Toh there will be the fix rule is there. [00:16:09] Accordingly we need to remove. [00:16:11] Okay. [00:16:12] Does not necessary the dictionary ki meaning check nahi karega. [00:16:15] Woh kisi bhi tariqa sa prefix ho suffix ho cut kar dhega. [00:16:18] But it is the very fast and computationally lightweight is there. [00:16:22] Okay. [00:16:23] It is that kind of the thing is there. [00:16:24] So if we are going ahead and if we need to see. [00:16:27] If we need to see that particular ki example kaya. [00:16:30] Just like if we are given the studies. [00:16:32] Studies in our data set. [00:16:34] And if we need to perform the stemming. [00:16:37] Then it is removing the yes. [00:16:40] Okay. [00:16:41] It can remove the yes. [00:16:42] But here the play. [00:16:44] But it is not considered any dictionary. [00:16:47] So it is not dictionary check nahi kari. [00:16:49] Without dictionary it can convert or it can do that particular ki study. [00:16:54] Study. [00:16:55] But this is not a correct study spelling. [00:16:57] Study spelling is like this. [00:16:58] The end by is there. [00:17:00] Because it is working like a rule. [00:17:02] Or heuristic ke hesaab se karega. [00:17:04] Because it does not check the dictionary meaning. [00:17:07] Toh ye itana efficient nahi hai. [00:17:09] Okay. [00:17:10] Just like the connected. [00:17:11] Toh connect de diya. [00:17:12] Last ki ed hattaa diya. [00:17:13] Yaha ing hattaa diya. [00:17:14] Then it is fine. [00:17:15] And relational. [00:17:17] Toh relate kar diya. [00:17:19] That means relate ki spelling will be this one. [00:17:21] But it can remove this kind of the thing. [00:17:24] Okay. [00:17:25] It can remove this kind of the thing. [00:17:27] So this is called as a stemming. [00:17:30] So stemming is may not be the valid English word. [00:17:34] Kyun ki humara studies ko study kar diya. [00:17:37] With the one stemmer is there. [00:17:39] Toh stemmer is just like the one kind of the thing. [00:17:43] Or one kind of the package. [00:17:46] Jho stemming ko perform karta hai. [00:17:48] Okay. [00:17:49] So the goal is the group related form. [00:17:52] Not always the dictionary thing. [00:17:54] Toh ye kya kar raha hai. [00:17:56] Is tarikay se work kar raha hai. [00:17:58] Okay. [00:17:59] Is tarikay se work kar raha. [00:18:00] So there will be the one algorithm is available. [00:18:02] And that algorithm will be called as a porter stemmer. [00:18:05] Okay. [00:18:06] So that is called as a porter stemmer. [00:18:08] Toh porter stemmer will do this kind of the thing. [00:18:10] But if we are applying the lemmatization over there. [00:18:14] Toh hum ne dekha we need to do the normalization. [00:18:17] That's it. [00:18:18] Abhi hume normalization karna hai. [00:18:19] Khoj words ka cut karna hai. [00:18:20] Us ke common form mein convert karna hai. [00:18:23] Toh stemming kya karta hai. [00:18:24] Rule based thing is there. [00:18:26] Or it can remove any kind of thing. [00:18:28] But lemmatization. [00:18:29] What is the lemmatization? [00:18:30] Lemmatization uses the vocabulary. [00:18:33] Or morphological analysis karega. [00:18:36] And it can find the lemma. [00:18:38] Lemma is just like there will be the rule is there. [00:18:41] And according to the rule it can convert. [00:18:44] Okay. [00:18:45] It will check the word. [00:18:46] Okay. [00:18:47] And it can be based on the dictionary form. [00:18:52] The dictionary form is called as a lemma. [00:18:54] It may use the part of speech as well as the linguistic context. [00:18:58] Toh part of speech or linguistic context ko deega. [00:19:02] Usually we are having the more linguistic informed than the stemming. [00:19:07] Okay. [00:19:08] So that kind of thing is there. [00:19:09] So this is called as a lemmatization. [00:19:12] Okay. [00:19:13] Lemmatization. [00:19:14] So just like studies is there. [00:19:16] So study is there. [00:19:17] Playing play. [00:19:18] Better. [00:19:19] Better ko is ne kya kar diya. [00:19:20] Good. [00:19:21] Because better ka good, better or best. [00:19:26] Toh yadi is ka root form check karna hai. [00:19:29] Better ka. [00:19:30] It is always the good. [00:19:31] Okay. [00:19:32] M. [00:19:33] P. [00:19:34] Bean. [00:19:35] Okay. [00:19:36] So the b ka yadi root form change karna hai. [00:19:38] Toh it is like a m. [00:19:39] So it will work like a. [00:19:41] To use the vocab and morphological thing. [00:19:44] Okay. [00:19:45] Toh morphological and vocab ke hesap se it will do the thing. [00:19:50] Now. [00:19:52] The context matter. [00:19:53] Context matter ka matlab kya hai. [00:19:55] The word saw. [00:19:56] Okay. [00:19:57] Just like we had. [00:19:58] We have to know. [00:19:59] See saw saw. [00:20:00] Okay. [00:20:02] Run. [00:20:03] Ran. [00:20:05] Okay. [00:20:06] Like this. [00:20:07] So yadi is ka root form chahiye. [00:20:08] So the limitization perform in it is the better manner. [00:20:11] Comparatively. [00:20:12] We are not saying it is 100% true thing. [00:20:15] But comparatively the limitization perform the better thing. [00:20:19] Because it is working under the vocab or morphological analysis. [00:20:24] It is performing that particular thing. [00:20:26] So that is called as a limitization. [00:20:28] So if we are doing the comparison between this thing. [00:20:31] Then how we can make a comparison. [00:20:33] It is the rule based kind of thing. [00:20:36] There will be the one question. [00:20:38] Is there any. [00:20:39] If there any new word is coming. [00:20:41] Which is not the lemma dictionary. [00:20:42] Then how. [00:20:43] So it is not handled. [00:20:45] It can perform the illogical thing. [00:20:48] It can perform the illogical thing. [00:20:50] Because it is not the dictionary word is there. [00:20:53] Because it is work on that. [00:20:56] Data set. [00:20:57] Because we need to. [00:20:58] There will be the NLTK data set is there. [00:21:01] PUNCT library is there. [00:21:02] Because all the word are stored there. [00:21:05] Because it is working over the data set only. [00:21:08] Okay. [00:21:09] It is working over the data set. [00:21:10] So we need to put that particular value into the PUNCT library. [00:21:14] So PUNCT library as well as the NLTK library are working. [00:21:18] And data work under this. [00:21:20] Okay. [00:21:21] So that is the one kind of the thing is there. [00:21:24] So side by side comparison. [00:21:26] If we are doing the comparison. [00:21:28] Then there will be the stemming is there. [00:21:30] As well as the lemmatization. [00:21:31] Stemming is working over the rule stripping. [00:21:34] That is the direct affix or suffix. [00:21:36] That is the rule here. [00:21:37] And here is vocabulary and morphological. [00:21:40] Now output may not be the real word. [00:21:43] But here is usually a dictionary lemma is there. [00:21:46] Speed. [00:21:47] It is faster manner but it is slow. [00:21:50] Okay. [00:21:51] Linguistic accuracy less precise. [00:21:54] Usually more precise. [00:21:55] That is the condition. [00:21:56] That is the condition. [00:21:57] That is more precise. [00:21:58] Not the 100% precise. [00:22:00] Okay. [00:22:01] 100% precise. [00:22:02] Because. [00:22:03] But question is asked by the Anuja. [00:22:05] If the new value or the new word is coming. [00:22:08] Then what happened. [00:22:09] Yes. [00:22:10] It is. [00:22:11] It will not work. [00:22:12] Okay. [00:22:13] So it is not like this. [00:22:16] Okay. [00:22:17] But we can put that particular word in the library. [00:22:21] But that will be done by the python people. [00:22:25] Okay. [00:22:26] And they are creating the new version of the database. [00:22:30] Okay. [00:22:31] So they are doing like this. [00:22:33] So. [00:22:34] The best fit. [00:22:35] The large scale retrieval where the speed matters. [00:22:38] So we need to use the stemming. [00:22:40] But whenever we are using the NLP related task. [00:22:45] That means the very sensitive task is there. [00:22:47] Then we need to use the lemmatization. [00:22:50] So here we are writing neither method is the universally best. [00:22:55] Choose based on the task language and accuracy. [00:22:58] That means we cannot say. [00:23:00] Stemming is bad or lemmatization is good. [00:23:02] It is based on the condition. [00:23:04] Or it is based on the application. [00:23:06] That we need to apply this. [00:23:08] Because lemmatization is little bit slower. [00:23:11] When we are comparing them with the stemming. [00:23:13] Does stemming also work in the other language? [00:23:16] Yes. [00:23:17] 100% it is working. [00:23:18] Every data. [00:23:20] Every language have its own dictionary is there. [00:23:23] Okay. [00:23:24] And inside the NLP it is already there. [00:23:26] Hindi ka hai. [00:23:27] German ka hai. [00:23:28] And there are Bengali also. [00:23:31] So there are lots of language. [00:23:33] Data set is already mentioned. [00:23:35] We need to import that particular data. [00:23:37] Or uske heshaafse we need to perform the stemming as well as the lemmatization. [00:23:43] So just like I am talking about the many times I am talking about the NLTK. [00:23:47] So NLTK is the one kind of the database is there. [00:23:51] So this is how we need to download. [00:23:53] That pip install NLTK first we need to install. [00:23:56] Then we need to download the word net data. [00:23:58] Okay. [00:23:59] Word net data is there. [00:24:00] And we need to import. [00:24:01] import. [00:24:02] To aap humne kya kar diya. [00:24:03] Yaha par under the NLTK stem. [00:24:06] That means we need to do the portal stemmer as well as the word net lemmatizer. [00:24:11] So this is the lemmatization. [00:24:12] If this is the portal. [00:24:14] Now inside the NLTK the corpus is there. [00:24:17] Corpus is just like a database. [00:24:19] Okay. [00:24:20] We need to import the word net. [00:24:21] Now if our word is like this. [00:24:23] If we need to apply with the help of the portal stemmer. [00:24:26] Then this word is going in the. [00:24:28] So this is the. [00:24:29] Ishtadi. [00:24:30] Okay. [00:24:31] And what is this ka output kya aega. [00:24:33] Ishtadi. [00:24:34] Okay. [00:24:35] It is like this. [00:24:36] So we need to find out the stemmer word also. [00:24:39] And the lemmatization word also. [00:24:41] Okay. [00:24:42] So this is the example of this. [00:24:43] So it is also the work example is there. [00:24:46] So if it is like this. [00:24:47] So we had written the complete thing. [00:24:50] Okay. [00:24:51] Complete thing. [00:24:52] So it is like this. [00:24:54] Sometimes that play is just like the playing is just like the playing is only. [00:24:59] So it is based on the different different lemmatizer or different different stemmer. [00:25:04] Because only the portal stemmer is not only the stemmer. [00:25:08] There are lots of other stemmer is also there. [00:25:11] Similarly, the word net lemmatizer is not only the lemmatizer. [00:25:15] There are other lemmatizer also is there. [00:25:18] Okay. [00:25:19] What are the interpretation? [00:25:20] That stemmer output depend on the algorithm. [00:25:23] For word net lemmatizer default the noun unless the part of speech is given. [00:25:29] So yeah. [00:25:30] Yadhi ham yaha par part of speech de de de te. [00:25:33] Okay. [00:25:34] If part of speech de de te. [00:25:36] Yaha mein with the verb POS playing can be become the play. [00:25:40] So yeh yadi bol de ta. [00:25:41] If we need to convert it into the first form of the word. [00:25:44] Verb. [00:25:45] Tab yeh playing. [00:25:46] Hata ke play kal de ta. [00:25:47] With the noun POS is given. [00:25:48] To mice can become the noun. [00:25:49] Mouse. [00:25:50] To yadhi ham yaha par part of speech bhi de na chalou kal de te. [00:25:51] Then accordingly we need to get. [00:25:52] To ab hame what you need to consider. [00:25:53] So we need not to do the things in the. [00:25:54] In the. [00:25:55] In blind weather. [00:25:56] Okay. [00:25:57] Blind weather. [00:25:58] We need to give the part of speech. [00:25:59] Okay. [00:26:00] And we need to do that particular kind of the task. [00:26:01] Okay. [00:26:03] So part of speech de na pade ga. [00:26:04] Accordingly we need to do that particular thing. [00:26:05] So the quick decision lehna hame pade ga. [00:26:06] Then we need to choose the limitization. [00:26:07] Either with the stemming or the limitization. [00:26:08] What things we need to do. [00:26:09] Okay. [00:26:10] What things we need to do. [00:26:11] Okay. [00:26:12] So yaha par kya likha hua hai. [00:26:13] This is the one. [00:26:14] That means output can change with the part of speech. [00:26:15] Here. [00:26:16] We have to do that particular kind of the task. [00:26:17] Okay. [00:26:18] So part of speech de na pade ga. [00:26:19] Accordingly we need to do that particular thing. [00:26:22] So the quick decision lehna hame pade ga. [00:26:26] Then we need to choose the limitization. [00:26:28] Either with the stemming or the limitization. [00:26:31] What things we need to do. [00:26:32] Okay. [00:26:33] So yaha par kya likha hua hai. [00:26:35] This is the one. [00:26:36] That means output can change with the part of speech. [00:26:39] Yaadi haa part of speech mention kar di gahi ki. [00:26:42] It is the first form then we can use. [00:26:44] The second the word net limitization need to be appropriate poa. [00:26:48] Yaadi haan par hum ne poa z day diya. [00:26:50] That will be the part of speech accordingly. [00:26:52] It will do the thing. [00:26:53] Okay. [00:26:54] So in practice how significantly does correct part of speech taking impact. [00:26:58] The hundred percent it is impacting. [00:27:00] Yaadi if we are assuming ki yaa pa just ni maai se. [00:27:04] Okay, maai se. [00:27:06] Yaadi is koo noun given kar diya. [00:27:08] if it is our subject just like i am talking about the sorry there will be the one sentence is there [00:27:18] that ram give book to sita if we are not mentioning the ram as a noun here okay [00:27:28] if we had applied sorry sorry sorry yeah okay noun mention nai kiya so it will cut sometimes the [00:27:40] ram is a ra okay it might be possible so noun here so noun here we had mentioned the verb [00:27:47] so verb if it is it is like the giving okay giving book to the sita so yeah [00:27:54] just like i am i need to return the ram gives book to the sita so it gives will be converted into the [00:28:01] give ki haan hume verb chahiye to next time jab hum is ka tokenization karenge tokenization means we are [00:28:08] cutting down to ram i got a sentence then next time it is taking as a give we it is not coming as a [00:28:16] gives ki gives to koi data set ka party nai hai we need to convert it into the certain word then we [00:28:23] need to write the book then we need to write the sita hum we can remove the two because this is the [00:28:29] keyword so this is how that all word are making the impact during the accuracy okay so this is just like [00:28:37] a data pre-processing is there that it is having when we need to do the data translation sorry if we need [00:28:44] to do the machine translation ki mene ye this will be the english language okay this will be the english [00:28:50] language ki ram gives book book sita okay but if we need to convert it into the hindi to [00:28:57] sabse pehle kya karna padega in ke sorry if it is like this it is the english sentence ki ram gives book [00:29:04] book to the sita okay now we need to perform the tokenization phir hum us ko in hindi me convert [00:29:10] okay can we apply both the set of the word for example first then [00:29:40] it will help yes you can do you can do it is just like a data pre-processing everything is optional we [00:29:46] are not saying you can apply the multiple time limitization but only it will affect the model [00:29:52] computational thing okay now do not think about much i am going directly to to the coding so that [00:30:01] you can learn something okay yeah so stemming we had already understood ki haa stemming hum ka sakti [00:30:09] last ka heuristic approach follow ka sakti last ka kuch worked ko chop ka sakti in the hope that we [00:30:14] can achieve the goal in the accurate manner so the first thing first this is the thing so we are [00:30:21] applying under the nltk dot stem we need to import the porter stemmer to hum kya karna hai porter [00:30:27] stemmer karna hai under the nltk so nltk is a library so how we can install the pip install lntk that i had [00:30:35] already showed in the uh slide okay so we need to perform the stemming or there will be the another [00:30:44] stemmer is there that will be the lancaster lancaster stemmer so we had imported the two stemmer okay [00:30:51] there will be the different different algorithm is there the portal stemmer ka understanding little [00:30:58] bit different or lancaster stemmer ka thoda po different ho sakta hai but it will apply both are [00:31:05] working under the stemming tag okay donno stemming ka kam kareinge now we need to use the one variable that [00:31:11] will be the portal so portal is comes and we are taken the portal stemmer is a portal or lancaster [00:31:18] stemmer is a lancaster like this now we need to print okay print karna hai porter stemmer now we need to [00:31:28] make the thing ki abha hamai kate word kates okay it is just like ki if we suppose we you need to consider [00:31:36] the one application one application one application is just like a machine translation okay english language [00:31:42] ko hindi language me convert karna hai just like a text to text conversion karna hai but english to hindi [00:31:48] karna hai okay it is like this so it is there are multiple option is there there are multiple application [00:31:55] is there related to the nlp jitna bhi chat gpt you are using that will be the question answering okay [00:32:01] in the text form okay and jitne bhi ai hai hai everybody is talking about the text so first it [00:32:12] will convert the value into the stemming or limitization subsepele tokenization perform [00:32:17] kata hai then only it will work so the it is just like print kates to yaha per kates given [00:32:24] karne ke baad porter stemmer kya result zeta hai that we need to see then after that the travel then [00:32:30] after we need to give the travel stemmer and it is like this traveling traveled so this is this four [00:32:37] are given to the porter stemmer now the next one is the we need to give it to the lancaster stemmer so [00:32:44] what it gives okay so lancaster stemmer is also giving the sum of the answer while this is also now you [00:32:51] can see this four are the result of the uh porter stemmer and this four are the result of the lancaster [00:32:59] stemmer so although the result will be the very was same because it is working under the stemming okay [00:33:05] so now you can see kates to kates se a sata diya because we are having the kate word in the nltk [00:33:13] that's why we are performing the normalization okay kates ki meaning nahi hain hain hain hain kates ko first [00:33:23] we need to convert with the kate then only we need to apply the thing okay why we are doing the [00:33:29] normalization this is the this is the main thing the lancaster and the porter stemmer there will be the [00:33:36] no difference is there it's just like a two different packages there okay it is having the [00:33:43] two different package okay it is not having the good the much difference is there [00:33:48] हमारे पास difference नहीं है but यह दो अलग-अलग algorithm है [00:33:52] for doing the stemming because stemming is the bigger thing [00:33:55] जो same work करेगी rule based or heuristic पे but there will be the two ways there [00:34:00] or there are other ways also there just like I had created the Lancaster [00:34:04] and you had created the Porter but both are working under the stemming category [00:34:09] okay so there will be the no differences there okay [00:34:12] sir it display the related work about the given word yes 100% related word [00:34:19] related word अभी हम इसको related word इसको थोड़ा सा change करते है [00:34:24] root word बोलते है root okay root word तो हमें सही word है यह root [00:34:29] कि playing है तो playing data set का part नहीं है playing नहीं समझेगा [00:34:36] model it will understand only the play okay it will only understand the play that's why [00:34:42] we need to go ahead okay इसी लिए हमें इस तरीके से काम करना आप देखो हम [00:34:48] पूरे sentence का streaming perform करते हैं okay now we are having the complete [00:34:52] sentence इसको हम हिंदी में convert करेंगे तो हिंदी इस इस इन complete [00:34:57] architecture बट पहले वी निग तू कनवर्ट देटा और वी इन्टु दा और पहले ता [00:35:03] first thing is that we need to apply the normalizations though how we can apply the [00:35:07] normalization so it is like this so from nltk.tokenize we need to import the sent tokenize [00:35:14] and the word tokenize कि ये sentence को भी tokenize का सकता है word को भी tokenize का सकता है [00:35:19] okay so there are different different thing is there okay so yes there may be the might the [00:35:28] minor difference is there okay there will be the minor differences there it will give the [00:35:32] different different value so Lancaster is little bit good in comparison to the water steamer [00:35:40] because water steamer is the first steamer algorithm but Lancaster is little bit good [00:35:46] in comparison to the water okay it is just a different different thing okay but it is work [00:35:54] under the stemming only okay it is just like an advanced version okay that because package [00:36:00] toh different type के बन सकते है the matplot lib भी बही काम करता है [00:36:04] c1 भी बही काम करता है c1 थोड़ा अच्छे तरीके से कर सकता है [00:36:07] but matplot with lib will not do that particular task okay now now the next thing is that we need [00:36:13] to tokenize the sentence then we need to tokenize the word also okay why we need to do the [00:36:22] transformation to the root word that I will tell okay the you had asked the Mohit has asked one [00:36:28] kind of question कि हम token हम क्यों transform कर रहें because the model will not [00:36:34] understand the playing playing word को समझेगा ही नहीं model will understand only the root word [00:36:42] वो सिर्फ root word को समझता है because our thing are only based on the root word तो यहां यदि हमने [00:36:49] playing दिया studies दिया यदि इस तरीके के word देंगे तो model will not understand [00:36:56] so पहले इसको कनवर्ट करना पड़ेगा डेटा को इन रूट वर्ड थेंगे तो यह नहीं अनली [00:37:00] model will understand that's why we are doing that particular thing that is the things that is the most [00:37:06] important process okay that's why we are doing that particular thing now we need to apply the same [00:37:15] sentence then we need to give the sentence now we need to convert the token okay token क्या होता है [00:37:21] simplest word is there ram is playing basketball तो ram play basketball yes that's it that's it [00:37:29] that is a hundred percent thing क्योंकि वो यह सब चीजों को समझे रही नहीं [00:37:34] okay yes so now we had tokenize that particular thing tokenize का meaning क्या है cut कर देंगे [00:37:40] single single words that's it okay now we need to use the word in the token word then stem sentence dot [00:37:49] append then porter dot stem word then we need to write the stem sentence dot append then we are [00:37:57] returning and join the stem sentence so this is like this is the just one thing that we are using [00:38:04] for tokenization sentence को भी tokenize कर सकते है वो word को भी tokenize कर सकते है now [00:38:09] after that after we are converting the we are writing the sentence हमने sentence यहां पर कर दिया [00:38:16] okay now this sentence will be put into the x तो यहां पर x में हम यहां पर इंपर इंपर इंपर दे रहे [00:38:23] then we need to print the sentence so the sentence will be this particular and x will be the we [00:38:29] are using the porter stemmer so yes you can see yes you can see here then after this we are only [00:38:36] working hi after that we need to do the vectoring hundred percent we are converting it into the [00:38:42] numerical value hundred percent hundred percent hundred percent okay the thing in the theory you [00:38:49] had understood कि यह जो सेंटेंस था राम प्ले बास्केट वाल तो यह हमारा [00:39:12] my specific की हना कनिवा राम इसके बाद हीप्ड़ वी रां बेक्ट यह मोर्क्तर माइशन भ सेच मांज्क हीआ ह्म इंबेडिक हीप्डिक के फिर इसको बोलेंगे हम इंबेडिक [00:39:35] pythoner is converted as a python because the uh model will understand only the python then r very [00:39:45] a very intelligent intelligence okay so it is not going the right thing [00:39:56] so there will be the too many uh so i will complete just this thing then end then work [00:40:01] then vary then pythonly okay and now so this is just doing the thing but it is going in the faster [00:40:08] manner faster manner okay but it is not the correct thing so this is limitization always [00:40:16] we are preparing the normalization okay sorry we are always preferring the limitization so i am [00:40:22] stopping here i am taking the doubt so shriya has doubt like with this data pre-present technique [00:40:30] can you tell an overview of the pipeline this will follow this nlp task using the some example these [00:40:36] are the only this is only the pre-processing kind of thing i am not taking the uh data into the model [00:40:43] i am not taking the model level we are taking only the data and pre-processing understand [00:40:49] this whatever model i will tell in the next upcoming class just like cnn rnn transformer all [00:40:58] model can be applied after using this particular thing what you need to have if you need to do the [00:41:06] machine translation then you need to take the input input tokenization [00:41:12] tokenize what you need to do the normalization you need to perform with the limitization and [00:41:18] then you need to go ahead and you need to use the model okay so if you have a doubt i can write [00:41:25] something i am can write something okay yes so your hair you can see the input okay input is there that [00:41:35] will be any sentence then we need to do the tokenize tokenization perform tokenization [00:41:41] information ke paul data ki pre-processing karna up pre-processing me you haa pere hammis stemming or [00:41:47] limitization use kar rhai after that we need to apply the model tho ya haa pere hammes cnn rnn [00:41:54] or third one is transformer kuch we use tokenization is just we are converting [00:42:01] ram is playing cricket okay so pahla token kya ho gaya ram then second token kya ho gaya is [00:42:10] then third token kya ho gaya playing then next token kya ho gaya cricket okay this is the token [00:42:18] is ko hum convert karenge ram ko ram like this okay so that is there now one more question is [00:42:25] there tokenization should be done before or after the stemming i hope this particular doubt will be [00:42:30] clear is ke baad ham stemming or limitization karenge okay yes so in this notebook file [00:42:36] available now in the moodle to go through in the parallel or the gesture we need to go okay okay [00:42:42] i'll i'll provide i'll provide after the class you can see when we do the limitization and stemming [00:42:48] remove the stop word from the corpus and how to nlp word is yes there that is that all things [00:42:56] whatever you had asked tusar everything we need to do under the data pre-processing because once we are [00:43:01] switching to the model we can directly apply the technical thing hamei input hamara prepare ho gaya [00:43:07] there will be the one more thing are remaining after the stemming or limitization we need to do the [00:43:12] embedding okay embedding embedding kya kata hai ye jo word word ram isko convert kar deta hai just like [00:43:20] 64 bit me that is one zero zero one one like this it is converting it into the something okay and that [00:43:28] is called as the that particular thing now sir is the concept of the word embedding similar word embedding [00:43:35] is just they are similar but after the stemming and limitization okay word embedding is just like [00:43:40] we are converting the uh text data into the numerical data that is the word embedding okay [00:43:48] is using more words correlate with the more token uses hundred percent hundred percent it is using [00:43:56] like this okay it can more word correlated to more token uses hundred percent hundred percent [00:44:02] so this is there now there will be the another technique is there that will be the limitization [00:44:08] because stemming is not working in the accurate manner stemming achse se work kari nahi rahi hai [00:44:14] toh hum kya karte hai lemmatization pe kar rahe hai because lemmatization can see the bokeb into the [00:44:20] dictionary or morphological analysis perform kar rahe okay just like lemmatization usually referred to doing the [00:44:27] properly just to use the vocab and morphological things so it will not remove the thing into the [00:44:34] blind manner it will see the dictionary and according to the lemma it will decide okay sir you said for the [00:44:41] lemmatization pos can also matter but if we are providing the token and not sentence then how pos will be [00:44:50] identified by the lemma model we need to give the input hummel pos within in the here the pos thing [00:45:00] is there okay at last here the pos thing is there okay just wait just wait at the last there will be [00:45:07] the pos thing is there so you can understand once this particular slide is completed this particular [00:45:12] things are completed definitely you will understand this okay every answer is there [00:45:16] 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 [00:45:25] two times then please let me know tokenize also happen the two times yes it is going the two times this [00:45:31] this particular answer is also in the upcoming uh upcoming wording thoda 10-15 minute [00:45:39] this particular answer is also there so just wait okay now we need to use the word net tokenization okay [00:45:54] now sorry word net limitizer so this is the limitizer okay now we had used the limitizer now we had used [00:46:01] the sentence so we had used this particular sentence now we are having the punctuation so [00:46:07] the punctuation we use okay uh so if the sentence is a word like don't [00:46:13] yes it is there right now you can see right now you can see here the punctuation is there [00:46:19] okay we had this punctuation is also matter because do alag se aega or not alag se aega because if with the [00:46:27] do not ko yadi do convert kar diya to it will the useless thing completely meaning ko change kar [00:46:34] dega okay so yaha par we had convert the sentence ko tokenization kiya then yaha par [00:46:40] humne word ko remove kar diya koon se word ko remove kar diya jho bhi humare punctuation [00:46:46] se related that's the sentence word is there then yaha par deko now this sentence word is there and [00:46:52] kis format me kar diya word or lemma lemma humara kya hai so this is the word and this is the lemma then [00:47:00] word in the sentence word we need to apply the lemmatization over the word so now you can see [00:47:06] the complete sentence is there he was running and eating at the same time like this okay now you can [00:47:12] see the first thing is tokenized what tokenized kya hoga the he is the first tokenized token the second [00:47:20] token is was the third token is running the next token is and the next token is eating next token is at [00:47:27] the same now you we are applying the lemmatization lemmatization now you can see the lemmatization [00:47:34] ne kya kira he ko he kar diya but boss ko kya kar diya walker diya that is the wrong thing to lemmatization [00:47:41] bhi hundred percent successful nahi hai but it is little bit same little bit good kyunki yaha running ko [00:47:48] isne running hi kiya run nahi kiya why because we had not given the part of speech we had not given the [00:47:53] part of speech we had not given the part of speech then it will convert the run into running into the [00:48:00] run so what is the next thing that when comes it away with that thing that comes in our mind [00:48:05] that means in the data set we need to give the word sorry we need to give the word so it is like [00:48:16] this the off is off heavy it is heavy it swimming is swimming after is after playing is playing long [00:48:21] is long so only it is giving this particular the word is wrong okay so it is like this so in the [00:48:28] our uh in the uh our code output you must be wondering that no actual root form has been given [00:48:35] okay this is because they are given the without context okay we didn't give the any context [00:48:43] so you need to provide the context in which you want to lemmatize and that is the part of speech [00:48:50] so we need to provide the part of speech then that is done by giving the value to the [00:48:55] part of speech parameter in this so now you can see now you can see you can see all the things [00:49:02] lemmatization we need to use the same thing the same word only what we are doing [00:49:08] here parameter change here part of speech ko humnne verb consider ker liya ki abh humnne verb [00:49:14] 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 [00:49:24] okay yes it is there it is correct one running car is run okay eating ka eat a gya okay and there are [00:49:34] swimming ka swimming ka swim a gya so now the we had given the part of speech and we are considering [00:49:40] ki humnne verb ko consider kerna hai okay we need to consider the verb so part of speech will be the verb so [00:49:47] we are considering that particular thing that will be the pos is the verb okay so now that is there now [00:49:54] that is there so this is how we need to apply the lemmatization okay this is how we are applying the [00:50:00] lemmatization so whatever question you had asked the nishant has asked some question and that can be [00:50:06] the like this ki humnne pos batana padega if we are not telling ki humnne pos use [00:50:12] karna hai then it is not uh the thing woh kya karega actual root form me convert in [00:50:19] hini karega because we had not given any context okay so is it necessary to specify the pos during the [00:50:25] the lemmatization again it is not the necessary process but it is the desirable process okay [00:50:31] necessary toh kuch hota hi nahi machine learning machine learning is not working in the necessary [00:50:37] is a thing it is only the recommendation or desirable because [00:50:41] so this is that particular thing okay now one so this is all about the pos okay sorry pos is there [00:51:05] toh pos ke baare meh humnne pos okay now we understood the pos up pos ke through pos limitization [00:51:13] ko affect karra hai yes it is hundred percent affecting the thing or yadhi pos affect karra [00:51:18] hai toh accuracy be affected yes it is hundred percent affected okay so it is the answer now somebody has [00:51:25] also also asked about the token count ki humnne jesai doh bar use karra hai okay doh bar anybody has asked [00:51:33] ki yadhi ham bar bar doh bar same word ko use karra hai toh wo tokenization meh doh bar lega yes jeevan [00:51:39] has asked that particular question okay toh yes it is counted the two time abo kya se count karna [00:51:45] hai that means the token count is also metas okay toh what we need to do the nltk dot tokenize [00:51:52] so we need to count okay so we need to import the counter and counter is under the collection so this [00:52:05] is the easy process that we need to import the count now we had used the one file okay file ko use [00:52:12] karna hai and what kind of the file is there we need to open the article dot txt just like i had created [00:52:19] the one file that is the article dot txt and i need to import and i need to give the write function [00:52:25] sorry read function so read karega then article equal to f dot read so yaha se text file read ho [00:52:33] ghi ab after the text file read abh humko tokenize karna hai toh this particular article dot txt ke [00:52:39] anndar we are having the complete data oh the hummye usse read karna hai now the token is equal to the word [00:52:46] tokenize and we need to give the article and we need to give the or we need to print the token [00:52:51] ha mein token ko print karna hai hai abh token ko print karne ka matlab hai we have to see now we are [00:52:58] having the sum sum lower token is also there okay lower token is also there so the lower token is looking [00:53:07] like this okay the lower token so this is the lower token then we need to print then print the [00:53:13] lower token okay now the bow that will be the big of word okay now we need to give the counter this [00:53:23] is the big of word concept is there there will be the one way of word is there and way of word [00:53:28] if we are having i live in india and now india is the best country like this this are the sentence [00:53:44] so i here we need to write one time here one time one time here two time like this okay it is like [00:53:57] this so one question is there will there will be any difference if any if we are doing limitization [00:54:05] of the single word as compared with the full sentence with the pos enabled uh no there will be the no [00:54:12] differences there but if you are given the complete sentence then only the uh stemming or limitization [00:54:22] perform because for the limitization and stemming we need the prerequisite condition is that the [00:54:28] tokenization should be there tokenization pay because single single word uh uh is stemming or [00:54:36] limitization now you can see we are doing we are doing now we need to print the most common 16 word is [00:54:45] there so that is the different story but you need to understand this is the tokenization okay tokenization [00:54:51] what tokenization meaning kya hai you can see okay here you can see so there will be the one of the [00:54:58] concept is there that means sorry one of the file is there where welcome to natural language processing it [00:55:05] is one of the most exciting research area as of the today we will see uh how python can be used to work [00:55:13] with the text file like this this is the complete sentence so humnne kya kya kya [00:55:17] 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 [00:55:20] Now, what we are printing, what we are printing, we are printing the lower token. [00:55:28] Then, what we are printing, what we are printing, we are printing the lower token. [00:55:31] So, welcome, which was the capital, we had small. [00:55:35] So, this is the lower case, yes, it is converted into the lower case. [00:55:42] Okay, so, yes, you can see this particular, whatever the data, [00:55:49] the shared by the Anujai, because it is the too long, I can move ahead, you can read, okay, you people can read. [00:55:56] Yeah, so, now, the next thing is that we need to count the token, okay, we need to count the token. [00:56:03] So, two is coming two times, off is coming two times, welcome is coming one time, natural is coming one time, [00:56:10] language is coming one time, so, it will count that particular thing. [00:56:14] 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. [00:56:25] 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, [00:56:35] it depends on the condition, it depends on the condition, it depends on the use case, yes, it is very, very correct, okay. [00:56:52] Now, now, the next pre-processing thing that we need to understand, [00:56:57] that we need to do, now, what we need to do, now, what we need to do, [00:57:26] next target हमारा क्या है, next target है हमारा, [00:57:30] जो stop word से, उनको reboot करेंगे, ठीके, तो first thing is that, [00:57:35] we need to identify the stop word, so, stop word के लिए, we need to identify that, [00:57:39] because inside the NLTK, all the stop word is mentioned, okay, [00:57:43] now, we need to download the stop word, and we need to apply the stop word, [00:57:48] so, here, both the things, you know very well, [00:57:51] कि हमने word net का limitizer यूज किया है, and word का tokenize किया है, [00:57:56] now, from NLTK.Corpus, we need to import the stop word, [00:58:01] and हमने collection तैयार किया है, everything is same, [00:58:04] this four are same, only one thing we had updated, [00:58:07] that will be the stop word, okay, yes, [00:58:10] now, the same file we need to read, [00:58:12] yes, now, the same tokenization, we need to perform, [00:58:16] yes, now, the main important thing, [00:58:18] that we need to use the stop word of the English language, [00:58:22] English language, [00:58:23] तैभी stop word है, [00:58:24] we need to use that stop word, [00:58:26] okay, stop word को हमने निकाल लिया, [00:58:29] then, lower case में convert कर लिया, [00:58:31] yes, then, [00:58:32] alphabetical, alpha only words को, [00:58:35] use कर लिया, okay, [00:58:36] alphabetic words को, use कर लिया, [00:58:38] now, the main concept, [00:58:40] we need to remove the stop word, [00:58:44] जितने भी stop word है, [00:58:45] we need to choose the alpha only, [00:58:48] that means, alpha only का मतलब क्या है, [00:58:50] numerical words को, use नहीं कर लिया, [00:58:52] जैसे, I need to write, [00:58:54] कि Ram has given the 10 books to sita, [00:58:57] 10 books, [00:58:57] तो 10 को हटा देंगे, [00:58:59] यदि 10, it is written in the alphabetically, [00:59:02] then, it can consider, [00:59:04] otherwise, वो 10, [00:59:05] यदि वो numerical में लिखा है, [00:59:07] then, we can remove that particular, [00:59:08] when we had used the alpha only, [00:59:11] okay, तब हम alphabetical number को ही, [00:59:13] use करेंगे, [00:59:14] and alphabetical number से ही, [00:59:16] हम English word को, [00:59:17] remove कर देंगे, [00:59:18] then, we had applied the limitizer, [00:59:20] then, we need to showcase, [00:59:22] the limitizer, [00:59:23] without the stopping word, [00:59:25] and after that, [00:59:26] we need to give the count, [00:59:27] and the most common 10, [00:59:29] we need to print, [00:59:30] okay, [00:59:30] so, that is the thing, [00:59:32] all the stories are same, [00:59:33] only, we had used the stop word, [00:59:36] और जो भी English language के अंदर stop word है, [00:59:38] उस stop word को, [00:59:39] use करना है, [00:59:39] that's it, [00:59:40] okay, [00:59:42] now, we have this, [00:59:44] now, we have this, [00:59:46] the complete data set is there, [00:59:48] yes, [00:59:48] now, इसके बाद, [00:59:49] what is this, [00:59:50] this is the lower case, [00:59:52] okay, [00:59:52] lower case को, [00:59:53] use कर लिया, [00:59:54] now, the next thing, [00:59:57] next, [01:00:00] the, [01:00:00] we are using the, [01:00:02] alpha only, [01:00:03] alpha words को, [01:00:04] ही use कर रहे हैं, [01:00:05] तो alpha words का, [01:00:06] use कर रहे हैं, [01:00:06] यहां से remove हो गया, [01:00:08] dot, [01:00:08] okay, [01:00:09] we had removed the dot, [01:00:12] okay, [01:00:12] we had removed the dot, [01:00:14] sir, [01:00:15] we asked you to upload, [01:00:17] the notebook, [01:00:19] okay, [01:00:19] so, [01:00:20] request you to upload, [01:00:21] before the class, [01:00:22] share, [01:00:22] okay, [01:00:24] fine, [01:00:25] I'll take the, [01:00:26] first five minutes, [01:00:28] to upload the thing, [01:00:29] then only, [01:00:29] we need to start, [01:00:30] okay, [01:00:30] next time, [01:00:31] I'll take care, [01:00:32] okay, [01:00:32] next time, [01:00:33] I'll take care, [01:00:34] okay, [01:00:34] so, [01:00:35] if I forgot, [01:00:36] then, [01:00:36] just first statement, [01:00:37] you need to write, [01:00:38] please upload the IP, [01:00:40] by and by, [01:00:40] then only, [01:00:41] you need to work, [01:00:42] okay, [01:00:42] so, [01:00:43] definitely, [01:00:44] I'll do that particular thing, [01:00:47] वो उसी class में, [01:00:48] just five minutes पहले, [01:00:49] I'll share, [01:00:50] so that you can, [01:00:51] but I'll provide, [01:00:53] just 10 minutes, [01:00:55] after this, [01:00:56] just, [01:00:56] you need to take the, [01:00:58] 10 minutes, [01:01:00] you can get the thing, [01:01:01] okay, [01:01:01] but 100%, [01:01:02] next time, [01:01:03] I'll give, [01:01:04] no issue, [01:01:06] so, [01:01:07] the first is, [01:01:08] the sentence, [01:01:10] second is the, [01:01:11] lowercase, [01:01:12] third क्या हो गया हमारा, [01:01:15] हमने alphabetical number को, [01:01:16] remove कर दिया, [01:01:17] तो alphabetical से, [01:01:18] sorry, [01:01:19] alphabetical को ही, [01:01:20] use किया, [01:01:21] while all the other can be removed, [01:01:24] dot या comma, [01:01:25] या fill in the blanks, [01:01:26] all can be removed, [01:01:27] now, [01:01:28] the next, [01:01:29] now the next, [01:01:30] will be the, [01:01:31] this particular, [01:01:32] okay, [01:01:33] this particular, [01:01:33] and what is this, [01:01:35] now you can see, [01:01:36] alpha हो गया, [01:01:38] that will be the, [01:01:39] no stop word, [01:01:40] एक भी stop words, [01:01:42] use नहीं होगे, [01:01:43] so whatever the, [01:01:44] English language में, [01:01:45] stop word है, [01:01:46] just like, [01:01:46] off, [01:01:47] two, [01:01:49] that all thing are there, [01:01:50] now, [01:01:51] at the end, [01:01:52] what is there, [01:01:54] the, [01:01:55] stop, [01:01:55] we need to remove, [01:01:56] the stop word, [01:01:57] so here you can see, [01:01:59] we are not having, [01:02:00] the, [01:02:00] off हो गया यहां से, [01:02:02] is हो गया, [01:02:03] okay, [01:02:04] to हो गया, [01:02:05] the हो गया, [01:02:06] is हो गया, [01:02:08] okay, [01:02:08] this all can be remove, [01:02:10] and after that, [01:02:11] we need to apply the, [01:02:12] limitization over there, [01:02:14] then at the end, [01:02:16] we had used the, [01:02:18] count, [01:02:18] okay, [01:02:18] now we had used the count, [01:02:20] so we got each and everything, [01:02:24] एक data set है, [01:02:26] small में convert किया, [01:02:27] then alphabetic, [01:02:28] alpha को रिमूट किया, [01:02:29] then stop word को रिमूट किया, [01:02:32] then after the stop word, [01:02:34] next one will be the, [01:02:36] limitization पर फॉट किया, [01:02:37] then after that, [01:02:38] we need to count the particular value, [01:02:40] okay, [01:02:41] count कर दिया, [01:02:42] and that all the things, [01:02:43] that is called as a beg of word, [01:02:45] okay, [01:02:45] that is a beg of word, [01:02:46] that is a B-O-W, [01:02:48] that will be the beg of word, [01:02:49] so this all thing we had used, [01:02:52] okay, [01:02:55] now we need to write the NER, [01:02:57] that will be the, [01:02:58] name entity recognition, [01:03:00] okay, [01:03:01] name entity recognition, [01:03:03] okay, [01:03:04] name entity recognition, [01:03:05] we need to use the name entity recognition, [01:03:08] using the NLTK, [01:03:10] so NLTK के through, [01:03:11] we need to use the NER, [01:03:13] so what is the NER, [01:03:14] you are now going to have some fun, [01:03:17] with the name entity recognition, [01:03:19] so name entity recognition, [01:03:21] is the very much important thing, [01:03:23] is there, [01:03:25] just like Ram, [01:03:27] gives book to the Sita, [01:03:28] so Ram is a noun, [01:03:30] okay, [01:03:31] the when, [01:03:32] or that will be the subject, [01:03:34] okay, [01:03:34] that is the subject, [01:03:35] so noun is a noun, [01:03:36] sorry, [01:03:37] Ram is a noun, [01:03:38] with the subject, [01:03:40] and is, [01:03:41] so why transformer is required, [01:03:43] where the, [01:03:44] I will tell that particular answer, [01:03:46] I will tell that particular answer, [01:03:47] during the transformer, [01:03:49] first we need to understand the CNN, [01:03:52] then RNN, [01:03:53] then we are moving to the transformer, [01:03:54] you will definitely get, [01:03:56] that particular answer, [01:03:57] once I am telling the CNN, [01:03:58] and RNN, [01:04:02] in the next class, [01:04:03] we will start the CNN, [01:04:05] I will teach the RNN, [01:04:07] I will teach the transformer, [01:04:09] okay, [01:04:09] I will tell each and everything to you, [01:04:12] okay, [01:04:12] अब name entity recognition के लिए, [01:04:14] what we need to do, [01:04:15] under the NLTK, [01:04:18] we need to use, [01:04:20] the first we need to use this, [01:04:22] then inside the NLTK, [01:04:24] there will be the average perceptron tagger, [01:04:27] okay, [01:04:28] एक तो ये library है, [01:04:30] एक तो maxent, [01:04:31] need checker है, [01:04:32] then there will be the word is there, [01:04:34] so this all can be there, [01:04:38] okay, [01:04:40] and we need to use, [01:04:41] so we need to import the NLTK, [01:04:43] and we need to perform this, [01:04:44] so we are writing the true, [01:04:46] okay, [01:04:46] yes, [01:04:48] now, [01:04:49] we need to apply, [01:04:50] this particular slide, [01:04:51] this particular text file के उपर ही, [01:04:54] हमें क्या perform करना है, [01:04:55] all these things are same, [01:04:57] all these things, [01:04:58] whatever you had used, [01:05:00] the everything is same, [01:05:01] but हमें यहां पर क्या करना है, [01:05:02] we had created this particular thing, [01:05:05] that is a new, [01:05:06] that means, [01:05:06] we need to make a name entity recognition, [01:05:09] कि हमें जो भी word यूज कर रहे हैं, [01:05:11] उसकी entity बताना है, [01:05:14] what is that particular thing, [01:05:15] so here, [01:05:16] everything is same, [01:05:18] now you can write, [01:05:19] the welcome, [01:05:21] welcome is a noun, [01:05:22] and NNP is a, [01:05:24] different kind of noun is there, [01:05:25] so here you can see, [01:05:27] NNP, [01:05:28] N E, [01:05:29] NNP, [01:05:30] is like this, [01:05:31] okay, [01:05:31] just like, [01:05:32] what is the NNP, [01:05:34] in, [01:05:35] what I am saying, [01:05:38] the NLTK, [01:05:40] in named, [01:05:42] entity, [01:05:43] entity recognition, [01:05:46] why I am searching, [01:05:47] because there are lots of thing is there, [01:05:49] okay, [01:05:50] so just like, [01:05:52] you can see, [01:05:54] there are the different, [01:05:55] different thing is there, [01:05:57] I don't know, [01:05:58] where we are getting, [01:05:59] there are lots of, [01:06:01] dictionary thing is there, [01:06:03] okay, [01:06:04] where, [01:06:04] what I need to search, [01:06:07] it is not mentioned, [01:06:09] what is NNP, [01:06:10] N E, [01:06:12] actually there are lots of thing is there, [01:06:13] N N P, [01:06:16] okay, [01:06:16] just wait, [01:06:20] N E R, [01:06:20] okay, [01:06:23] yes, [01:06:23] it is just like, [01:06:24] a proper noun, [01:06:26] with the singular is there, [01:06:27] okay, [01:06:28] it is just like, [01:06:28] N N P, [01:06:29] stand for, [01:06:30] that is proper noun, [01:06:31] and singular is there, [01:06:32] so, [01:06:33] there are different things is there, [01:06:35] okay, [01:06:36] there are different things is there, [01:06:38] so, [01:06:38] what is the N N P, [01:06:40] what is the N N E, [01:06:41] N E R, [01:06:41] का क्या है जब हम POS taking करेंगे तब हम उस word को NER से भी करेंगे वो linguistic [01:06:48] feature बताएगा कि वो person है location है organization है क्या है वो okay this all [01:06:55] things are telling by this okay that's why that particular things are relatively important [01:07:00] to NER क्या बताता है name entity recognition but I didn't remember what is the NNP [01:07:06] what is the any they okay so this all things are there just like यहां पर चंक लेवल पर [01:07:12] any लिखेंगे जो भी NNP होगा we need to write कि यदि हमको इसमें से [01:07:18] noun को ट्रिक करना है with the singular manner then we need to use this particular [01:07:23] thing so this will tell the name entity recognition so what are the things that are important in [01:07:33] this particular data pre-processing that I will tell but first I need to take one question sir in [01:07:39] the previous example how was also removed in the how which then what why I'll also counter yes [01:07:47] hundred percent this all can be the this all can be the stop words okay because in the English [01:07:53] language that all can be the stop word okay तो जितने भी stop word है उसको हम [01:07:58] remove कर सकते हैं और stop word अलग से होंगे क्यों होंगे क्योंकि हम यदि [01:08:04] what why और was how इनको एसा नहीं है कि यह consideration में नहीं होगा ओके [01:08:10] just understand this particular thing just understand this particular thing यदि कहीं पर [01:08:23] consider नहीं होंगे in the model model के अंदर consider होंगे but it is not considered [01:08:30] in the limitization या हम बात करते है pre processing में नहीं होगा pre processing में [01:08:37] consider नहीं होगा because यदि हम pre processing में consider कर दे then sometimes what [01:08:42] sometimes what happened what को convert करके यह वह कर देगा that is the useless kind of thing [01:08:48] that's why we are putting that into the we need to remove or only उन वर्ट को ही करे जिनका [01:08:54] dictionary में meaning है okay उन वर्ट का यह stop word की meaning stop word हमेशा fix रहेगा it is [01:09:01] hundred percent fixed thing is there okay so we need not to perform that particular thing [01:09:06] okay so that is the story now i will tell this is the data pre processing is there okay [01:09:14] or we can say the text pre processing okay text pre processing so what are the important thing just [01:09:22] like ram is giving book to sita okay this will be the input तब हम इसके उपर सबसे पहले [01:09:32] क्या करेंगे tokenization क्या कर रहा है that will be the ram is giving [01:09:39] book to sita this is the tokenization after that क्या perform करना है not sorry [01:09:50] normalization okay either the stemming or limitization दोनों में से कुछ भी परवाँ करना है [01:09:58] just like ram is give अब इसके साथ what we can do the pos ठीके pos दे सकते that is the [01:10:07] thing now after that after that we need to use the stop word remover remove करना है कि यह इस नहों [01:10:15] तो तू नहों तो क्या हो गया ram give book sita ठीक है यह consider हो गए now after that [01:10:24] इसका count निकालना है यदि ram एक बार आया है give एक बार आया है book एक बार आया है [01:10:32] like this okay like this after that count हमें एनिया निकालना है कि named entity recognition कि [01:10:39] ram is the n np like this सबका यह निकालना है then hi this is the list of the pos take okay [01:10:48] yes i need to search this nishant has given yes this is the list of the pos okay then after that once [01:10:55] once we are done we need to get and we need to convert it into the embedding okay embedding करना है [01:11:01] जो कि तुमने theory class में you had i think you had see कि इसको ram को vector में [01:11:06] convert कर दिया and that is the 64 bit now this input we need to give into the model okay now [01:11:14] now the model need to be perform any kind of the application the application can be anything [01:11:21] क्या क्या application हो सकती machine translation okay machine translation में [01:11:26] use हो सकता है question answer में use हो सकता है third chatbot में use हो सकता है [01:11:32] okay right now everybody is using the chatbot so हम क्या तरते एक text देते हैं और उसके बाद data की [01:11:38] preprocessing होती है then model perform होता है then at the end answer question answer [01:11:44] आते है question answer आते है so this is all the things related to the this is all the [01:11:51] things related to the text preprocessing अब we had understood कि हमें text की preprocessing [01:11:58] किस तरीके से करना है now our main thing are comes into the picture that will be the [01:12:03] model यह में model कौन से यूज करना है so we have to use the different model okay [01:12:10] and just like CNN RNN under the RNN family what is there what kind of the model is there LHTM [01:12:19] group okay this kind of the model is there or there will be the YLHTM also okay now after that [01:12:26] the transformer is there or until the transformer what is this the GPT is there that is the part [01:12:33] of the chat GPT encoder decoder sorry encoder decoder then next one is the part okay so that is all [01:12:44] the things we will see in the next upcoming classes okay in the next upcoming classes oh after yes yes [01:12:51] we got this particular so we need to at least understand yes attention is the part of the [01:12:56] transformer attention how we seek in the seeking it okay attention self-attention all the things we [01:13:04] will see in this particular class so that is about the thing that is all about the things anybody having [01:13:12] any doubt related to the text preprocessing then let me know otherwise we'll definitely move the [01:13:19] models in the next class okay so we'll start the CNN part but CNN is working over the image data set okay [01:13:30] image data set and image data set is directly converting it into the matrix where we data [01:13:36] preprocessing but image preprocessing is not a big task that's why we are not telling the image preprocessing [01:13:44] okay but i am telling little bit over there cnn may i'll tell so cnn in the next class we'll start [01:13:51] with the cnn after that we need to see the rnn through the rnn we can perform the text also we can [01:13:58] perform the image also but only we need the time state data over there so we'll see definitely see [01:14:03] we'll see all the things in there because in the theory also you had started the cnn okay so once you [01:14:10] are uh totally understand the cnn in the theory then we can see in that particular thing in the [01:14:16] uh theoretical or in the practical part because uh the machine learning we can't understand the machine [01:14:24] learning without the coding we can't understand because the theoretical concept is not the big deal [01:14:33] okay but when we are understanding the practical aspect then only we can understand [01:14:38] like this okay so i hope that particular kind of the things works for you because in this particular [01:14:46] subject there will be the no theory session is there sorry no practical session is there that's why we are [01:14:51] putting the effort to put the uh every concept with the help of uh the tutorial kind of thing [01:14:59] uh can you please repeat the nr i'll tell okay sir could you explain about the different type of the [01:15:16] embedding model like the globe or word embedding uh actually that is the part of the theory okay so i'll tell [01:15:23] sir that please give the some insight about the embedding because the embedding is not [01:15:32] okay so in the next class i'll also tell little bit of the embedding technique okay no issue [01:15:38] uh so once we are doing the transformer definitely we can go yes ravi has asked about the nr [01:15:44] nr ka name entity recognition that we have tokenized the ram is giving book to the sita [01:15:52] 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 [01:16:04] meaning of the nnp is just like a proper noun with the singular okay proper noun with the singular that is [01:16:12] the story okay so that kind of information also considered in this sir can you enable mic once i have [01:16:28] a doubt regarding the paper submission in the conference actually uh that i can't say you can [01:16:36] mail me so you can mail me uh regarding that particular thing my mail id is here i am writing if you are [01:16:44] having any doubt then you can contact me over there uh i can write the my email id over there that is the [01:16:51] okay so this is my email id i you i can help over there yeah [01:17:10] yeah it is very good that this class is very useful sir able to and yes that that's why we are putting the [01:17:16] effort and we are putting that kind of the class with this okay so yeah uh so that's it from my [01:17:23] side anybody having any doubt then let me know otherwise we'll end this particular class definitely [01:17:28] you will understand the many things from this particular class i am because the syllabus is the [01:17:34] too much okay i can able to correlate the little bit things for you okay and definitely i will provide [01:17:41] this ip1v file right now okay so that you can able to get this particular thing okay so anybody having [01:17:50] any doubt then let me know otherwise i am uh putting the things over there uh [01:17:58] chat box will you be helpful to train the custom wordnet yes yes you can you can you can help the you [01:18:06] can write the particular things into the that particular slp i had given mlp i had given now i need to [01:18:15] give the what kind of the file nlp1 okay yes yes i need to upload the nlp so first i need to upload the [01:18:24] slide also because the slide is also the important so yes the slide i had uploaded now one more thing i need [01:18:32] to upload that will be the uh ip1v file in the next upcoming classes i will definitely upload the slide [01:18:43] before starting the class so yes yes so yes i had uploaded okay [01:18:55] yes i had uploaded yes you can see you can see okay you can see [01:19:08] today recording you will get you will get yes i had shared the code you can check you can check i had [01:19:13] already shared the code okay uh now that's it from my side you can check each and everything over there [01:19:21] i need to stop the recording so that you can able to get the recording okay yeah so thank you all thank [01:19:27] you thank you thank you thank you so much yeah thank you all fine so we'll meet in the next week okay [01:19:36] 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 [01:19:44] given them my email id you can mail me this i am definitely help help you out over there okay yeah [01:19:52] so thank you so much i need to stop the recording okay yeah