<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Khushboo Alvi on Medium]]></title>
        <description><![CDATA[Stories by Khushboo Alvi on Medium]]></description>
        <link>https://medium.com/@khushbooalvi9?source=rss-61fc3b41e808------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yKfq9g-WsJH_giMh0OsqAQ.jpeg</url>
            <title>Stories by Khushboo Alvi on Medium</title>
            <link>https://medium.com/@khushbooalvi9?source=rss-61fc3b41e808------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 18 May 2026 11:32:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khushbooalvi9/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[What is Scope in Python?]]></title>
            <link>https://medium.com/@khushbooalvi9/what-is-scope-in-python-54b7a3f295ff?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/54b7a3f295ff</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Sat, 04 May 2024 13:32:20 GMT</pubDate>
            <atom:updated>2024-05-04T13:32:20.995Z</atom:updated>
            <content:encoded><![CDATA[<p>The location where we can find a variable and also access it if required is called the scope of a variable.</p><p><strong>Global Scope:</strong></p><p>Variables defined outside of any function or class have global scope. These can be accessed from anywhere within the program. To modify a global variable inside a function, we use global keyword.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*fzLIevOz0Qjrta3ycK3ScQ.png" /></figure><p><strong>Enclosing or Non-local Scope :</strong></p><p>Enclosing scope refers to the scope of the enclosing function when nested functions are defined. Inner functions can access variables from outer functions, but cannot modify it by default. For Modifying Variables, we use non local keyword.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*p2gEQSTQdjogd5cln0o6Eg.png" /></figure><p><strong>Local Scope :</strong></p><p>Variables defined within a function have local scope. These can only be accessed from within that function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*AWV5nnxKAiPPezfmAK5wOg.png" /></figure><p>Understanding scope helps you write code that is easier to maintain, debug and reason about. It also enables you to avoid unintended side effects by controlling where variables can be accessed and modified.</p><p>Keep Learning 😊 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54b7a3f295ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Different Operations Using SQL]]></title>
            <link>https://medium.com/@khushbooalvi9/different-operations-using-sql-b5188c34ea2d?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5188c34ea2d</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Sat, 27 Apr 2024 09:29:13 GMT</pubDate>
            <atom:updated>2024-04-27T09:29:13.642Z</atom:updated>
            <content:encoded><![CDATA[<p>Here , I am sharing a brief description of different Operations using SQL.</p><p><strong>SELECT</strong>: Retrieves specific columns from a table.<br><strong>GROUP BY</strong>: Aggregates rows based on a specified column or expression.<br><strong>WHERE </strong>: Filters rows based on a specified condition.<br><strong>ORDER BY </strong>: Sorts the result set based on one or more columns.<br><strong>JOIN</strong> : Combines rows from two or more tables based on a related column between them.<br><strong>INNER JOIN </strong>: Returns only the rows with matching values in both tables.<br><strong>LEFT JOIN</strong> : Returns all rows from the left table and matching rows from the right table.<br><strong>RIGHT JOIN</strong> : Returns all rows from the right table and matching rows from the left table.<br><strong>FULL JOIN</strong> : Returns all rows when there is a match in left or right table.<br><strong>UNION</strong> : Combines the result sets of two or more SELECT statements into a single result set.<br><strong>UNION ALL </strong>: Combines the result sets of two or more SELECT statements into a single result set including duplicates.<br><strong>INSERT INTO</strong> : Inserts new rows into a table.<br><strong>UPDATE </strong>: Modifies existing rows in a table based on a specified condition.<br><strong>DELETE FROM</strong> : Deletes existing rows from a table based on a specified condition.<br><strong>CREATE TABLE</strong> : Creates a new table in the database.<br><strong>ALTER TABLE </strong>: Modifies an existing table structure.<br><strong>DROP TABLE</strong> : Deletes a table from the database.<br><strong>CREATE DATABASE</strong> : Creates a new database.<br><strong>DROP DATABASE</strong> : Drops an existing database.<br><strong>CREATE INDEX</strong> : Creates an index on a table to speed up data retrieval.<br><strong>DROP INDEX </strong>: Deletes an index from a table.<br><strong>TRUNCATE TABLE</strong> : Deletes all rows from a table but retains the table structure.<br><strong>ALTER INDEX</strong> : Modifies an existing index.<br><strong>ALTER VIEW </strong>: Modifies an existing view.<br><strong>CREATE VIEW</strong> : Creates a virtual table based on the result set of a SELECT statement.<br><strong>DROP VIEW </strong>: Deletes an existing view.<br><strong>COMMIT</strong> : Saves all changes made in the current transaction.<br><strong>ROLLBACK </strong>: Undo changes made in the current transaction.</p><p>Keep Learning 😊!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5188c34ea2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pandas Interview Questions]]></title>
            <link>https://medium.com/@khushbooalvi9/pandas-interview-questions-e7c4bc8cacfe?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7c4bc8cacfe</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 19:44:02 GMT</pubDate>
            <atom:updated>2024-04-23T19:44:02.265Z</atom:updated>
            <content:encoded><![CDATA[<p>Here, I am sharing important Pandas interview questions crucial for interviews:</p><p>1.What is pandas in Python?<br>2. What is the difference between Series and DataFrame?<br>3. What is an index in pandas?<br>4. What is Multi indexing in pandas?<br>5. Explain pandas Reindexing.<br>6. What is the difference between loc and iloc?<br>7. Tell different ways to create a pandas DataFrame.<br>8. What is the difference between Join and Merge methods in pandas?<br>9. What is Timedelta?<br>10. How do you read Excel files to CSV using pandas?<br>11. How do you sort a DataFrame based on columns?<br>12. How can you create a new column derived from existing columns?<br>13. How do you handle null or missing values in pandas?<br>14. What is Resampling?<br>15. What is the pandas method to get the statistical summary of all the columns in a DataFrame?<br>16. How to access the first few rows of a dataframe?<br>17. Difference between pivot_table() and groupby().<br>18. How to convert a String to Datetime in Pandas?</p><p>Keep Learning !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7c4bc8cacfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Plots using Matplotlib for data visualization.]]></title>
            <link>https://medium.com/@khushbooalvi9/common-plots-using-matplotlib-for-data-visualization-95eba2ea3998?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/95eba2ea3998</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 19:12:27 GMT</pubDate>
            <atom:updated>2024-04-23T19:12:27.913Z</atom:updated>
            <content:encoded><![CDATA[<p>I am sharing a brief description of different types of plots using Matplotlib.</p><p><strong>plt.plot(x, y):</strong> Line Plot represents data points connected by straight lines ideal for showing trends over time.</p><p><strong>plt.scatter(x, y) : </strong>Scatter Plot displays individual data points as markers useful for exploring relationships between two variables.</p><p><strong>plt.bar(categories, values):</strong> Bar Plot uses rectangular bars to represent categorical data facilitating comparisons between different groups.</p><p><strong>plt.hist(data, bins): </strong>Histogram visualizes the distribution of a continuous variable by dividing it into bins and displaying the frequency of each bin.</p><p><strong>plt.pie(values, labels=labels):</strong> Pie Chart illustrates the proportion of different categories in a dataset using slices of a circle.</p><p><strong>plt.boxplot(data): </strong>Box Plot summarizes the distribution of a continuous variable through quartiles, outliers and median.</p><p><strong>plt.violinplot(data): </strong>Violin Plot combines the features of a box plot and a kernel density plot to provide insights into data distribution and density.</p><p><strong>plt.imshow(data, cmap=’viridis’):</strong> Heatmap represents data values in a matrix format using colors, useful for identifying patterns and correlations.</p><p><strong>plt.stackplot(x, y1, y2, labels=[‘Variable 1’, ‘Variable 2’]) :</strong> Area Plot displays the cumulative contribution of different variables over time or another dimension.</p><p><strong>plt.errorbar(x, y, yerr=error, fmt=‘o’) : </strong>Error Bar Plot represents variability or uncertainty in data by displaying error bars around data points or bars.</p><p><strong>plt.contour(X, Y, Z) : </strong>Contour Plot shows the 3D surface of a function in a 2D plane using contour lines to represent different levels of the function.</p><p><strong>plt.polar(theta, r) :</strong> Radar Chart displays multivariate data in the form of a twodimensional chart with three or more quantitative variables represented on axes starting from the same point.</p><p><strong>plt.hexbin(x, y, gridsize=20): </strong>Hexbin Plot represents the counts of observations falling within hexagonal bins useful for visualizing the distribution of large datasets.</p><p><strong>plt.quiver(x, y, u, v) :</strong> Quiver Plot visualizes vector fields with arrows where each arrow represents the direction and magnitude of a vector at a specific point.</p><p><strong>plt.streamplot(x, y, u, v) : </strong>Streamplot represents flow fields using streamlines, which are curves that are tangent to the velocity vector of the flow.</p><p><strong>fig = plt.figure()</strong></p><p><strong>ax = fig.add_subplot(111, projection=’3d’)</strong></p><p><strong>ax.scatter(x, y, z)</strong></p><p>3D Plotting creates three-dimensional visualizations of data points, surfaces or volumes.</p><p><strong>plt.contourf(X, Y, Z) : </strong>Contourf Plot fills the area between contours with colors to represent different levels.</p><p><strong>ax.plot_surface(X, Y, Z) :</strong> Surface Plot represents a three-dimensional surface by plotting a grid of points in three-dimensional space and connecting them with a continuous surface.</p><p><strong>wordcloud = WordCloud().generate(text)</strong></p><p><strong>plt.imshow(wordcloud, interpolation=’bilinear’)</strong></p><p>Word Cloud represents text data by displaying words in different sizes based on their frequency or importance.</p><p>These plots offer sophisticated ways to visualize complex data and relationships. Depending on your data and analysis goals, you can choose the appropriate plot type to effectively communicate insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95eba2ea3998" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[List comprehension in Python.]]></title>
            <link>https://medium.com/@khushbooalvi9/list-comprehension-in-python-bc47b93334d5?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc47b93334d5</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Thu, 04 Apr 2024 17:54:46 GMT</pubDate>
            <atom:updated>2024-04-04T17:54:46.210Z</atom:updated>
            <content:encoded><![CDATA[<p>List comprehension is a concise way to create a new list based on the values of an existing list.</p><p>In another terms, It is generally a single line of code enclosed in square brackets to filter, format, modify or do other small tasks on existing iterables such as strings, tuples, lists and so on.</p><p><strong>Syntax : [expression for item in iterable if condition]</strong></p><p><strong>Where:</strong></p><p><strong>expression:</strong> represents the operation you want to execute on every item within the iterable.</p><p><strong>item : </strong>It refers to each value taken from the iterable.</p><p><strong>iterable: </strong>specify the sequence of elements you want to iterate through.</p><p><strong>condition:</strong> A filter helps to decide whether or not an element should be added to the new list.</p><p>Here, I have shared some examples of different type of list comprehension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*kjZlW5a42RbNpi1nV64y9A.png" /></figure><p>Keep Learning !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc47b93334d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bag-of-words model in NLP]]></title>
            <link>https://medium.com/@khushbooalvi9/bag-of-words-model-in-nlp-6738b37f64a1?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/6738b37f64a1</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 19:01:06 GMT</pubDate>
            <atom:updated>2024-04-02T19:02:54.318Z</atom:updated>
            <content:encoded><![CDATA[<p>Whenever we apply any algorithm in NLP, it works on numbers. We cannot directly feed our text into that algorithm. Bag Of Words is a feature extraction method of converting the text data into numerical vectors as features. Those numbers are the count of each word (token) in a document.</p><p>This model can be visualized using a table which contains the count of words corresponding to the word itself.</p><p><strong>Applying the Bag of Words model</strong></p><p><strong>Step1 : Data Preprocessing</strong></p><p>Convert text to lower case, Remove all non-word characters and punctuations.</p><p><strong>Step2 : Obtain most frequent words.</strong></p><p>Declare a dictionary to hold bag of words and tokenize each sentence to words. Now for each word in sentence, we check if the word exists in dictionary. If it does, then increment its count by 1. If it doesn’t, add it to dictionary and set its count as 1.</p><p><strong>Step3 : Building the Bag of Words model.</strong></p><p>In this step, create binary vectors representing each sentence where each element indicates the presence (1) or absence (0) of a frequent word from bag of words. These binary vectors serve as the numerical representation of the textual data.</p><p>This process results in a table-like structure where each row corresponds to a document and each column corresponds to a word. The values in the table represent the frequency of each word in the respective document.</p><p>The Bag of Words model is used for tasks like sentiment analysis, document classification etc.</p><p><strong>Limitations of Bag of Words Model</strong></p><p>1. It ignores the order of words in a document leading to a loss of valuable sequential information.</p><p>2. BoW matrices can be very sparse especially when dealing with large vocabularies or documents. It can lead to high-dimensional data which may require significant memory and computational resources.</p><p>3. It treats each word as independent disregarding the context in which words appear. This can result in a loss of meaning and context in the analysis.</p><p>4. It assigns equal importance to all words regardless of their relevance or importance in a specific task.</p><p>5. It struggles with out-of-vocabulary words as it cannot represent words that were not seen during the training phase which may limit its effectiveness in handling new terms.</p><p>Keep Learning 😊 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6738b37f64a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Named Entity Recognition (NER) and its applications.]]></title>
            <link>https://medium.com/@khushbooalvi9/named-entity-recognition-ner-and-its-applications-b141d9a63f70?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/b141d9a63f70</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 01:46:52 GMT</pubDate>
            <atom:updated>2024-04-01T01:46:52.823Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Describe the process of Named Entity Recognition (NER) and its applications.</strong></p><p>Named Entity Recognition (NER) is a technique in natural language processing (NLP) that locate and classify named entities mentioned in unstructured text into predefined categories such as the names of persons, organizations, locations, expressions of times, quantities, monetary values, percentages etc.</p><p><strong>Process of NER:</strong></p><p><strong>1. Preprocessing:</strong></p><p>It involves cleaning the text, removing unnecessary elements (like HTML tags, if any) and sometimes converting the entire text into a uniform case (usually lowercase) to standardize the input data.</p><p><strong>2. Tokenization:</strong></p><p>The text is split into sentences and then into words or tokens.</p><p><strong>3. Part-of-Speech Tagging:</strong></p><p>Each word or token is labeled with a part of speech (noun, verb, adjective, etc.), based on its definition and its context in the sentence.</p><p><strong>4. Entity Detection:</strong></p><p>It can be approached in several ways including rule-based methods, machine learning models or a combination of both. Rule-based methods use predefined patterns and dictionaries while machine learning models especially those based on deep learning learn from annotated training data.</p><p><strong>5. Entity Classification:</strong></p><p>Once potential entities are detected, these are classified into predefined categories.</p><p><strong>6. Post-processing:</strong></p><p>It might involve normalization as standardizing entity representations e.g., dates into a common format and disambiguation as ensuring entities are correctly identified in terms of their real-world counterparts.</p><p><strong>Applications of NER:</strong></p><p><strong>1. Information Retrieval:</strong></p><p>NER can improve the efficiency of information retrieval systems by enabling searches that are focused on specific entities.</p><p><strong>2. Content Recommendation:</strong></p><p>By identifying entities in content systems can recommend articles products or services based on the user’s past interactions with similar entities.</p><p><strong>3. Sentiment Analysis:</strong></p><p>NER can be used to identify entities in product reviews or social media posts which can then be the focus of sentiment analysis.</p><p><strong>4. Knowledge Graphs:</strong></p><p>NER is used to extract entities and their relationships from text which are then used to construct knowledge graphs that represent real-world facts and how they’re interconnected.</p><p><strong>5. Automated Customer Support:</strong></p><p>NER can help in identifying specific products, services or issues mentioned in customer queries, enabling more efficient and automated customer service responses.</p><p>Keep Learning 😊!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b141d9a63f70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[lambda functions in Python]]></title>
            <link>https://medium.com/@khushbooalvi9/lambda-functions-in-python-8e09d7db9e68?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e09d7db9e68</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 01:44:15 GMT</pubDate>
            <atom:updated>2024-04-01T01:44:15.639Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What are lambda functions in Python, and how are they used?</strong></p><p>It is a small anonymous function defined using the lambda keyword. Lambda functions can take any number of arguments but can only have one expression. These are commonly used when you need a short function for a short period of time such as for sorting or filtering operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*svm1UjTgxMdjfyp8AgJAIg.png" /></figure><p>Keep Learning!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e09d7db9e68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are n-grams and how are they useful in NLP tasks?]]></title>
            <link>https://medium.com/@khushbooalvi9/what-are-n-grams-and-how-are-they-useful-in-nlp-tasks-f077a795141b?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/f077a795141b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Sat, 30 Mar 2024 16:25:35 GMT</pubDate>
            <atom:updated>2024-03-30T16:25:35.076Z</atom:updated>
            <content:encoded><![CDATA[<p>n-grams are continuous sequences of words or symbols or tokens in a document. n-grams typically are collected from a text or speech corpus as a long text dataset.</p><p>Here, n is just a variable that can have positive integer values. n-grams are classified into the following types:</p><p>n Term<br>1 Unigram<br>2 Bigram<br>3 Trigram<br>n n-gram</p><p><strong>n-grams are useful in several NLP tasks:</strong></p><p><strong>a). Language Modeling:</strong></p><p>n-grams are used to build language models (statistical) that predict the probability of a word or sequence of words occurring in a given context. n-gram language models are used for text generation and speech recognition.</p><p><strong>b). Text Prediction and Autocomplete:</strong></p><p>By calculating the probability of a sequence of words appearing together, the n-gram model can predict what will most likely come next in the sentence, making them useful for autocomplete systems in search engines, messaging apps and word processors.</p><p><strong>c). Spelling Correction:</strong></p><p>By analyzing the frequency of occurrence of n-grams, spelling correction systems can suggest corrections for misspelled words based on the likelihood of certain n-grams occurring in the language.</p><p><strong>d). Machine Translation:</strong></p><p>n-grams are used in machine translation systems to break down sentences into smaller units for translation, helping to capture the local context and improve translation accuracy.</p><p><strong>e). Sentiment Analysis:</strong></p><p>n-grams can be used as features in sentiment analysis tasks where the presence or absence of specific word sequences can provide valuable clues about the sentiment expressed in a text.</p><p><strong>f). Text Classification:</strong></p><p>n-grams can be used as features for building classifiers, capturing patterns and characteristics of different classes of documents in tasks such as spam detection or document categorization.</p><p>Keep Learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f077a795141b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between tokenization, stemming, and lemmatization]]></title>
            <link>https://medium.com/@khushbooalvi9/difference-between-tokenization-stemming-and-lemmatization-0f58817b6c65?source=rss-61fc3b41e808------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f58817b6c65</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Khushboo Alvi]]></dc:creator>
            <pubDate>Sat, 30 Mar 2024 16:22:41 GMT</pubDate>
            <atom:updated>2024-03-30T16:22:41.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s start with a question…</p><p><strong>Explain the difference between tokenization, stemming, and lemmatization.</strong></p><p>Tokenization, stemming, and lemmatization are the techniques used in natural language processing (NLP) and text mining to preprocess textual data.</p><p><strong>1. Tokenization:</strong></p><p>Tokenization is the process of breaking down a text into smaller units typically splitting paragraphs into sentences and sentences into words. Tokens are the basic building blocks used for further analysis in NLP tasks.</p><p><strong>2. Stemming:</strong></p><p>Stemming is a technique used to reduce words to their root or base form, called the stem. It involves removing suffixes or prefixes from words to achieve this normalization. For example, the words ‘play’, ‘plays’, ‘played’, and ‘playing’ are reduced to ‘play’ which is a meaningful word. However, this is not always the case.</p><p>Stemming might not always result in semantically meaningful base words. The stemmer reduces the word ‘communication’ to a base word ‘commun’ which is meaningless in itself.</p><p>Stemming is faster and computationally less expensive than Lemmatization.</p><p>Stemming is often used in information retrieval systems and search engines for faster indexing and retrieval.</p><p><strong>3. Lemmatization:</strong></p><p>Lemmatization is similar to stemming but aims to reduce words to their canonical form, called the lemma. Unlike stemming, lemmatization considers the context and meaning of the word. For example, ‘play’, ‘plays’, ‘played’, and ‘playing’ have ‘play’ are reduced to play and the word ‘communication’ are reduced to the base word ‘communication’.</p><p>Lemmatization is slower and computationally more expensive than Stemming.</p><p>Lemmatization is preferred in tasks where semantic meaning is important such as sentiment analysis or language translation.</p><p>Keep Learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f58817b6c65" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>