<?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 Anurag Makade on Medium]]></title>
        <description><![CDATA[Stories by Anurag Makade on Medium]]></description>
        <link>https://medium.com/@anurag.makade?source=rss-75f81a2d4d58------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*yb8Qs2-qhxGYmL7wZphv2w.jpeg</url>
            <title>Stories by Anurag Makade on Medium</title>
            <link>https://medium.com/@anurag.makade?source=rss-75f81a2d4d58------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:20:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anurag.makade/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[Filtering Insincere Questions from Quora]]></title>
            <link>https://medium.com/@anurag.makade/filtering-insincere-questions-from-quora-8ab6add470fa?source=rss-75f81a2d4d58------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ab6add470fa</guid>
            <dc:creator><![CDATA[Anurag Makade]]></dc:creator>
            <pubDate>Sun, 21 Nov 2021 17:23:02 GMT</pubDate>
            <atom:updated>2021-11-25T06:00:54.438Z</atom:updated>
            <content:encoded><![CDATA[<p>Quora is a social question-and-answer website. Users can collaborate by editing questions and commenting on answers that have been submitted by other users. One of the key challenges it faces is filtering out insincere questions — questions intended to make a statement rather than look for helpful answers.</p><h4>Problem Statement</h4><p>Classify Quora questions as sincere or insincere</p><h4>Dataset Overview</h4><p>The <a href="https://www.kaggle.com/c/quora-insincere-questions-classification/data">dataset</a> was made available as a part of a <a href="https://www.kaggle.com/c/quora-insincere-questions-classification/">competition</a> on Kaggle. The training set consists of over 1,300,000 labeled samples and test set with over 300,000 unlabeled samples. Each sample contains the following:</p><p><strong>qid</strong> -&gt; It is the question Id.<br><strong>question_text</strong> -&gt; It is the question text.<br><strong>target</strong> -&gt; It is the target variable. 1 represents insincere and 0 represents sincere.</p><h4>Characteristics of an insincere questions</h4><p>According the dataset description, an insincere question can have the following characteristics:</p><ul><li>Has a non-neural tone</li><li>Is disparaging or inflammatory</li><li>Isn’t grounded in reality</li><li>Uses sexual content(incest, bestiality and pedophilia) for shock value, and not to seek genuine answers</li></ul><h3>Data Analysis</h3><p>In this section, we perform exploratory analysis with the dataset.</p><p>First, we load the training and testing datasets into pandas dataframes.</p><pre>df_train = pd.read_csv(path + &#39;train.csv&#39;)<br>df_test = pd.read_csv(path + &#39;test.csv&#39;)</pre><pre>print(&quot;Number of data points in training data:&quot;, df_train.shape[0])<br>print(&quot;Number of data points in test data:&quot;, df_test.shape[0])</pre><p>Output:</p><pre>Number of data points in training data: 1306122<br>Number of data points in test data: 375806</pre><p>We have over 1 million question texts along with the target variable. We perforn train-test split on train.csv data set itself, as it also has the label which we will require for evaluating the performance of our model. The examples in test.csv are unlabeled.</p><p>Let’s view the first few rows of the dataset:</p><pre>df_train.head()</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*bYq0UiW0tRc2yR9hrzWy8w.png" /><figcaption>First few samples in the dataset</figcaption></figure><p>Let’s also check if there are any null values in the dataset.</p><pre>df_train[&#39;question_text&#39;].isnull().sum()</pre><p>Output:</p><pre>0</pre><p>So there are no null values in the question_text column.</p><p>Let us check the distribution of the target variable in the dataset.</p><pre>plt.subplot(1, 2, 1)<br>df_train.groupby(&#39;target&#39;)[&#39;qid&#39;].count().plot.bar(color=&#39;green&#39;)<br>plt.grid(True)<br>plt.title(&#39;Target Count&#39;)<br>plt.subplots_adjust(right=1.9)</pre><pre>plt.subplot(1, 2, 2)<br>values = [df_train[df_train[&#39;target&#39;]==0].shape[0], df_train[df_train[&#39;target&#39;]==1].shape[0]]<br>labels = [&#39;Sincere questions&#39;, &#39;Insincere questions&#39;]</pre><pre>plt.pie(values, labels=labels, autopct=&#39;%1.1f%%&#39;, shadow=True, colors=[&#39;green&#39;,&#39;yellow&#39;])<br>plt.title(&#39;Target Distribution&#39;)<br>plt.tight_layout()<br>plt.subplots_adjust(right=1.9)<br>plt.show()</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*NBvP0-w72Hz_wlmJ2pzu4Q.png" /><figcaption>Distribution of target variable</figcaption></figure><p>We can observe that the dataset is highly imbalanced with only 6% of tuples having target 1. Hence it is clear that accuracy would not be a good performance metric. Merely classifying all samples as 0 will give us more than 90% accuracy. Therefore we will be using F1 score to measure the performance.</p><h3>Data Preprocessing</h3><p>We now apply some standard data preprocessing techniques on the dataset. These include replacing math equations and urls with tags, spelling correction, stopwards removal, lemmatization etc.</p><h4>Replacing math equations and url addresses with tags.</h4><p>Since they might interfere with our model’s learning capability. Here, regular expressions are used to replace math equations and urls.</p><p><a href="https://www.kaggle.com/canming/ensemble-mean-iii-64-36">Credits</a></p><pre>def clean_tag(x):<br>  if &#39;[math]&#39; in x:<br>    x = re.sub(&#39;\[math\].*?math\]&#39;, &#39;MATH EQUATION&#39;, x) #replacing with [MATH EQUATION]<br>    <br>  if &#39;http&#39; in x or &#39;www&#39; in x:<br>    x = re.sub(&#39;(?:(?:https?|ftp):\/\/)?[\w/\-?=%.]+\.[\w/\-?=%.]+&#39;, &#39;URL&#39;, x) #replacing with [url]<br>  return x</pre><h4>Cleaning special symbols.</h4><p>Various special symbols appearing in the text are replaced with spaces.</p><p><a href="https://www.kaggle.com/canming/ensemble-mean-iii-64-36">Credits</a></p><pre>puncts = [&#39;,&#39;, &#39;.&#39;, &#39;&quot;&#39;, &#39;:&#39;, &#39;)&#39;, &#39;(&#39;, &#39;-&#39;, &#39;!&#39;, &#39;?&#39;, &#39;|&#39;, &#39;;&#39;, &quot;&#39;&quot;, &#39;$&#39;, &#39;&amp;&#39;, &#39;/&#39;, &#39;[&#39;, &#39;]&#39;, &#39;&gt;&#39;, &#39;%&#39;, &#39;=&#39;, &#39;#&#39;, &#39;*&#39;, &#39;+&#39;, &#39;\\&#39;, <br>        &#39;•&#39;, &#39;~&#39;, &#39;@&#39;, &#39;£&#39;, &#39;·&#39;, &#39;_&#39;, &#39;{&#39;, &#39;}&#39;, &#39;©&#39;, &#39;^&#39;, &#39;®&#39;, &#39;`&#39;, &#39;&lt;&#39;, &#39;→&#39;, &#39;°&#39;, &#39;€&#39;, &#39;™&#39;, &#39;›&#39;, &#39;♥&#39;, &#39;←&#39;, &#39;×&#39;, &#39;§&#39;, &#39;″&#39;, &#39;′&#39;, <br>        &#39;█&#39;, &#39;…&#39;, &#39;“&#39;, &#39;★&#39;, &#39;”&#39;, &#39;–&#39;, &#39;●&#39;, &#39;►&#39;, &#39;−&#39;, &#39;¢&#39;, &#39;¬&#39;, &#39;░&#39;, &#39;¡&#39;, &#39;¶&#39;, &#39;↑&#39;, &#39;±&#39;, &#39;¿&#39;, &#39;▾&#39;, &#39;═&#39;, &#39;¦&#39;, &#39;║&#39;, &#39;―&#39;, &#39;¥&#39;, &#39;▓&#39;, <br>        &#39;—&#39;, &#39;‹&#39;, &#39;─&#39;, &#39;▒&#39;, &#39;：&#39;, &#39;⊕&#39;, &#39;▼&#39;, &#39;▪&#39;, &#39;†&#39;, &#39;■&#39;, &#39;’&#39;, &#39;▀&#39;, &#39;¨&#39;, &#39;▄&#39;, &#39;♫&#39;, &#39;☆&#39;, &#39;¯&#39;, &#39;♦&#39;, &#39;¤&#39;, &#39;▲&#39;, &#39;¸&#39;, &#39;⋅&#39;, &#39;‘&#39;, &#39;∞&#39;, <br>        &#39;∙&#39;, &#39;）&#39;, &#39;↓&#39;, &#39;、&#39;, &#39;│&#39;, &#39;（&#39;, &#39;»&#39;, &#39;，&#39;, &#39;♪&#39;, &#39;╩&#39;, &#39;╚&#39;, &#39;・&#39;, &#39;╦&#39;, &#39;╣&#39;, &#39;╔&#39;, &#39;╗&#39;, &#39;▬&#39;, &#39;❤&#39;, &#39;≤&#39;, &#39;‡&#39;, &#39;√&#39;, &#39;◄&#39;, &#39;━&#39;, <br>        &#39;⇒&#39;, &#39;▶&#39;, &#39;≥&#39;, &#39;╝&#39;, &#39;♡&#39;, &#39;◊&#39;, &#39;。&#39;, &#39;✈&#39;, &#39;≡&#39;, &#39;☺&#39;, &#39;✔&#39;, &#39;↵&#39;, &#39;≈&#39;, &#39;✓&#39;, &#39;♣&#39;, &#39;☎&#39;, &#39;℃&#39;, &#39;◦&#39;, &#39;└&#39;, &#39;‟&#39;, &#39;～&#39;, &#39;！&#39;, &#39;○&#39;, <br>        &#39;◆&#39;, &#39;№&#39;, &#39;♠&#39;, &#39;▌&#39;, &#39;✿&#39;, &#39;▸&#39;, &#39;⁄&#39;, &#39;□&#39;, &#39;❖&#39;, &#39;✦&#39;, &#39;．&#39;, &#39;÷&#39;, &#39;｜&#39;, &#39;┃&#39;, &#39;／&#39;, &#39;￥&#39;, &#39;╠&#39;, &#39;↩&#39;, &#39;✭&#39;, &#39;▐&#39;, &#39;☼&#39;, &#39;☻&#39;, &#39;┐&#39;, <br>        &#39;├&#39;, &#39;«&#39;, &#39;∼&#39;, &#39;┌&#39;, &#39;℉&#39;, &#39;☮&#39;, &#39;฿&#39;, &#39;≦&#39;, &#39;♬&#39;, &#39;✧&#39;, &#39;〉&#39;, &#39;－&#39;, &#39;⌂&#39;, &#39;✖&#39;, &#39;･&#39;, &#39;◕&#39;, &#39;※&#39;, &#39;‖&#39;, &#39;◀&#39;, &#39;‰&#39;, &#39;\x97&#39;, &#39;↺&#39;, <br>        &#39;∆&#39;, &#39;┘&#39;, &#39;┬&#39;, &#39;╬&#39;, &#39;،&#39;, &#39;⌘&#39;, &#39;⊂&#39;, &#39;＞&#39;, &#39;〈&#39;, &#39;⎙&#39;, &#39;？&#39;, &#39;☠&#39;, &#39;⇐&#39;, &#39;▫&#39;, &#39;∗&#39;, &#39;∈&#39;, &#39;≠&#39;, &#39;♀&#39;, &#39;♔&#39;, &#39;˚&#39;, &#39;℗&#39;, &#39;┗&#39;, &#39;＊&#39;, <br>        &#39;┼&#39;, &#39;❀&#39;, &#39;＆&#39;, &#39;∩&#39;, &#39;♂&#39;, &#39;‿&#39;, &#39;∑&#39;, &#39;‣&#39;, &#39;➜&#39;, &#39;┛&#39;, &#39;⇓&#39;, &#39;☯&#39;, &#39;⊖&#39;, &#39;☀&#39;, &#39;┳&#39;, &#39;；&#39;, &#39;∇&#39;, &#39;⇑&#39;, &#39;✰&#39;, &#39;◇&#39;, &#39;♯&#39;, &#39;☞&#39;, &#39;´&#39;, <br>        &#39;↔&#39;, &#39;┏&#39;, &#39;｡&#39;, &#39;◘&#39;, &#39;∂&#39;, &#39;✌&#39;, &#39;♭&#39;, &#39;┣&#39;, &#39;┴&#39;, &#39;┓&#39;, &#39;✨&#39;, &#39;\xa0&#39;, &#39;˜&#39;, &#39;❥&#39;, &#39;┫&#39;, &#39;℠&#39;, &#39;✒&#39;, &#39;［&#39;, &#39;∫&#39;, &#39;\x93&#39;, &#39;≧&#39;, &#39;］&#39;, <br>        &#39;\x94&#39;, &#39;∀&#39;, &#39;♛&#39;, &#39;\x96&#39;, &#39;∨&#39;, &#39;◎&#39;, &#39;↻&#39;, &#39;⇩&#39;, &#39;＜&#39;, &#39;≫&#39;, &#39;✩&#39;, &#39;✪&#39;, &#39;♕&#39;, &#39;؟&#39;, &#39;₤&#39;, &#39;☛&#39;, &#39;╮&#39;, &#39;␊&#39;, &#39;＋&#39;, &#39;┈&#39;, &#39;％&#39;, <br>        &#39;╋&#39;, &#39;▽&#39;, &#39;⇨&#39;, &#39;┻&#39;, &#39;⊗&#39;, &#39;￡&#39;, &#39;।&#39;, &#39;▂&#39;, &#39;✯&#39;, &#39;▇&#39;, &#39;＿&#39;, &#39;➤&#39;, &#39;✞&#39;, &#39;＝&#39;, &#39;▷&#39;, &#39;△&#39;, &#39;◙&#39;, &#39;▅&#39;, &#39;✝&#39;, &#39;∧&#39;, &#39;␉&#39;, &#39;☭&#39;, <br>        &#39;┊&#39;, &#39;╯&#39;, &#39;☾&#39;, &#39;➔&#39;, &#39;∴&#39;, &#39;\x92&#39;, &#39;▃&#39;, &#39;↳&#39;, &#39;＾&#39;, &#39;׳&#39;, &#39;➢&#39;, &#39;╭&#39;, &#39;➡&#39;, &#39;＠&#39;, &#39;⊙&#39;, &#39;☢&#39;, &#39;˝&#39;, &#39;∏&#39;, &#39;„&#39;, &#39;∥&#39;, &#39;❝&#39;, &#39;☐&#39;, <br>        &#39;▆&#39;, &#39;╱&#39;, &#39;⋙&#39;, &#39;๏&#39;, &#39;☁&#39;, &#39;⇔&#39;, &#39;▔&#39;, &#39;\x91&#39;, &#39;➚&#39;, &#39;◡&#39;, &#39;╰&#39;, &#39;\x85&#39;, &#39;♢&#39;, &#39;˙&#39;, &#39;۞&#39;, &#39;✘&#39;, &#39;✮&#39;, &#39;☑&#39;, &#39;⋆&#39;, &#39;ⓘ&#39;, &#39;❒&#39;, <br>        &#39;☣&#39;, &#39;✉&#39;, &#39;⌊&#39;, &#39;➠&#39;, &#39;∣&#39;, &#39;❑&#39;, &#39;◢&#39;, &#39;ⓒ&#39;, &#39;\x80&#39;, &#39;〒&#39;, &#39;∕&#39;, &#39;▮&#39;, &#39;⦿&#39;, &#39;✫&#39;, &#39;✚&#39;, &#39;⋯&#39;, &#39;♩&#39;, &#39;☂&#39;, &#39;❞&#39;, &#39;‗&#39;, &#39;܂&#39;, &#39;☜&#39;, <br>        &#39;‾&#39;, &#39;✜&#39;, &#39;╲&#39;, &#39;∘&#39;, &#39;⟩&#39;, &#39;＼&#39;, &#39;⟨&#39;, &#39;·&#39;, &#39;✗&#39;, &#39;♚&#39;, &#39;∅&#39;, &#39;ⓔ&#39;, &#39;◣&#39;, &#39;͡&#39;, &#39;‛&#39;, &#39;❦&#39;, &#39;◠&#39;, &#39;✄&#39;, &#39;❄&#39;, &#39;∃&#39;, &#39;␣&#39;, &#39;≪&#39;, &#39;｢&#39;, <br>        &#39;≅&#39;, &#39;◯&#39;, &#39;☽&#39;, &#39;∎&#39;, &#39;｣&#39;, &#39;❧&#39;, &#39;̅&#39;, &#39;ⓐ&#39;, &#39;↘&#39;, &#39;⚓&#39;, &#39;▣&#39;, &#39;˘&#39;, &#39;∪&#39;, &#39;⇢&#39;, &#39;✍&#39;, &#39;⊥&#39;, &#39;＃&#39;, &#39;⎯&#39;, &#39;↠&#39;, &#39;۩&#39;, &#39;☰&#39;, &#39;◥&#39;, <br>        &#39;⊆&#39;, &#39;✽&#39;, &#39;⚡&#39;, &#39;↪&#39;, &#39;❁&#39;, &#39;☹&#39;, &#39;◼&#39;, &#39;☃&#39;, &#39;◤&#39;, &#39;❏&#39;, &#39;ⓢ&#39;, &#39;⊱&#39;, &#39;➝&#39;, &#39;̣&#39;, &#39;✡&#39;, &#39;∠&#39;, &#39;｀&#39;, &#39;▴&#39;, &#39;┤&#39;, &#39;∝&#39;, &#39;♏&#39;, &#39;ⓐ&#39;, <br>        &#39;✎&#39;, &#39;;&#39;, &#39;␤&#39;, &#39;＇&#39;, &#39;❣&#39;, &#39;✂&#39;, &#39;✤&#39;, &#39;ⓞ&#39;, &#39;☪&#39;, &#39;✴&#39;, &#39;⌒&#39;, &#39;˛&#39;, &#39;♒&#39;, &#39;＄&#39;, &#39;✶&#39;, &#39;▻&#39;, &#39;ⓔ&#39;, &#39;◌&#39;, &#39;◈&#39;, &#39;❚&#39;, &#39;❂&#39;, &#39;￦&#39;, <br>        &#39;◉&#39;, &#39;╜&#39;, &#39;̃&#39;, &#39;✱&#39;, &#39;╖&#39;, &#39;❉&#39;, &#39;ⓡ&#39;, &#39;↗&#39;, &#39;ⓣ&#39;, &#39;♻&#39;, &#39;➽&#39;, &#39;׀&#39;, &#39;✲&#39;, &#39;✬&#39;, &#39;☉&#39;, &#39;▉&#39;, &#39;≒&#39;, &#39;☥&#39;, &#39;⌐&#39;, &#39;♨&#39;, &#39;✕&#39;, &#39;ⓝ&#39;, <br>        &#39;⊰&#39;, &#39;❘&#39;, &#39;＂&#39;, &#39;⇧&#39;, &#39;̵&#39;, &#39;➪&#39;, &#39;▁&#39;, &#39;▏&#39;, &#39;⊃&#39;, &#39;ⓛ&#39;, &#39;‚&#39;, &#39;♰&#39;, &#39;́&#39;, &#39;✏&#39;, &#39;⏑&#39;, &#39;̶&#39;, &#39;ⓢ&#39;, &#39;⩾&#39;, &#39;￠&#39;, &#39;❍&#39;, &#39;≃&#39;, &#39;⋰&#39;, &#39;♋&#39;, <br>        &#39;､&#39;, &#39;̂&#39;, &#39;❋&#39;, &#39;✳&#39;, &#39;ⓤ&#39;, &#39;╤&#39;, &#39;▕&#39;, &#39;⌣&#39;, &#39;✸&#39;, &#39;℮&#39;, &#39;⁺&#39;, &#39;▨&#39;, &#39;╨&#39;, &#39;ⓥ&#39;, &#39;♈&#39;, &#39;❃&#39;, &#39;☝&#39;, &#39;✻&#39;, &#39;⊇&#39;, &#39;≻&#39;, &#39;♘&#39;, &#39;♞&#39;, <br>        &#39;◂&#39;, &#39;✟&#39;, &#39;⌠&#39;, &#39;✠&#39;, &#39;☚&#39;, &#39;✥&#39;, &#39;❊&#39;, &#39;ⓒ&#39;, &#39;⌈&#39;, &#39;❅&#39;, &#39;ⓡ&#39;, &#39;♧&#39;, &#39;ⓞ&#39;, &#39;▭&#39;, &#39;❱&#39;, &#39;ⓣ&#39;, &#39;∟&#39;, &#39;☕&#39;, &#39;♺&#39;, &#39;∵&#39;, &#39;⍝&#39;, &#39;ⓑ&#39;, <br>        &#39;✵&#39;, &#39;✣&#39;, &#39;٭&#39;, &#39;♆&#39;, &#39;ⓘ&#39;, &#39;∶&#39;, &#39;⚜&#39;, &#39;◞&#39;, &#39;்&#39;, &#39;✹&#39;, &#39;➥&#39;, &#39;↕&#39;, &#39;̳&#39;, &#39;∷&#39;, &#39;✋&#39;, &#39;➧&#39;, &#39;∋&#39;, &#39;̿&#39;, &#39;ͧ&#39;, &#39;┅&#39;, &#39;⥤&#39;, &#39;⬆&#39;, &#39;⋱&#39;, <br>        &#39;☄&#39;, &#39;↖&#39;, &#39;⋮&#39;, &#39;۔&#39;, &#39;♌&#39;, &#39;ⓛ&#39;, &#39;╕&#39;, &#39;♓&#39;, &#39;❯&#39;, &#39;♍&#39;, &#39;▋&#39;, &#39;✺&#39;, &#39;⭐&#39;, &#39;✾&#39;, &#39;♊&#39;, &#39;➣&#39;, &#39;▿&#39;, &#39;ⓑ&#39;, &#39;♉&#39;, &#39;⏠&#39;, &#39;◾&#39;, &#39;▹&#39;, <br>        &#39;⩽&#39;, &#39;↦&#39;, &#39;╥&#39;, &#39;⍵&#39;, &#39;⌋&#39;, &#39;։&#39;, &#39;➨&#39;, &#39;∮&#39;, &#39;⇥&#39;, &#39;ⓗ&#39;, &#39;ⓓ&#39;, &#39;⁻&#39;, &#39;⎝&#39;, &#39;⌥&#39;, &#39;⌉&#39;, &#39;◔&#39;, &#39;◑&#39;, &#39;✼&#39;, &#39;♎&#39;, &#39;♐&#39;, &#39;╪&#39;, &#39;⊚&#39;, <br>        &#39;☒&#39;, &#39;⇤&#39;, &#39;ⓜ&#39;, &#39;⎠&#39;, &#39;◐&#39;, &#39;⚠&#39;, &#39;╞&#39;, &#39;◗&#39;, &#39;⎕&#39;, &#39;ⓨ&#39;, &#39;☟&#39;, &#39;ⓟ&#39;, &#39;♟&#39;, &#39;❈&#39;, &#39;↬&#39;, &#39;ⓓ&#39;, &#39;◻&#39;, &#39;♮&#39;, &#39;❙&#39;, &#39;♤&#39;, &#39;∉&#39;, &#39;؛&#39;, <br>        &#39;⁂&#39;, &#39;ⓝ&#39;, &#39;־&#39;, &#39;♑&#39;, &#39;╫&#39;, &#39;╓&#39;, &#39;╳&#39;, &#39;⬅&#39;, &#39;☔&#39;, &#39;☸&#39;, &#39;┄&#39;, &#39;╧&#39;, &#39;׃&#39;, &#39;⎢&#39;, &#39;❆&#39;, &#39;⋄&#39;, &#39;⚫&#39;, &#39;̏&#39;, &#39;☏&#39;, &#39;➞&#39;, &#39;͂&#39;, &#39;␙&#39;, <br>        &#39;ⓤ&#39;, &#39;◟&#39;, &#39;̊&#39;, &#39;⚐&#39;, &#39;✙&#39;, &#39;↙&#39;, &#39;̾&#39;, &#39;℘&#39;, &#39;✷&#39;, &#39;⍺&#39;, &#39;❌&#39;, &#39;⊢&#39;, &#39;▵&#39;, &#39;✅&#39;, &#39;ⓖ&#39;, &#39;☨&#39;, &#39;▰&#39;, &#39;╡&#39;, &#39;ⓜ&#39;, &#39;☤&#39;, &#39;∽&#39;, &#39;╘&#39;, <br>        &#39;˹&#39;, &#39;↨&#39;, &#39;♙&#39;, &#39;⬇&#39;, &#39;♱&#39;, &#39;⌡&#39;, &#39;⠀&#39;, &#39;╛&#39;, &#39;❕&#39;, &#39;┉&#39;, &#39;ⓟ&#39;, &#39;̀&#39;, &#39;♖&#39;, &#39;ⓚ&#39;, &#39;┆&#39;, &#39;⎜&#39;, &#39;◜&#39;, &#39;⚾&#39;, &#39;⤴&#39;, &#39;✇&#39;, &#39;╟&#39;, &#39;⎛&#39;, <br>        &#39;☩&#39;, &#39;➲&#39;, &#39;➟&#39;, &#39;ⓥ&#39;, &#39;ⓗ&#39;, &#39;⏝&#39;, &#39;◃&#39;, &#39;╢&#39;, &#39;↯&#39;, &#39;✆&#39;, &#39;˃&#39;, &#39;⍴&#39;, &#39;❇&#39;, &#39;⚽&#39;, &#39;╒&#39;, &#39;̸&#39;, &#39;♜&#39;, &#39;☓&#39;, &#39;➳&#39;, &#39;⇄&#39;, &#39;☬&#39;, &#39;⚑&#39;, <br>        &#39;✐&#39;, &#39;⌃&#39;, &#39;◅&#39;, &#39;▢&#39;, &#39;❐&#39;, &#39;∊&#39;, &#39;☈&#39;, &#39;॥&#39;, &#39;⎮&#39;, &#39;▩&#39;, &#39;ு&#39;, &#39;⊹&#39;, &#39;‵&#39;, &#39;␔&#39;, &#39;☊&#39;, &#39;➸&#39;, &#39;̌&#39;, &#39;☿&#39;, &#39;⇉&#39;, &#39;⊳&#39;, &#39;╙&#39;, &#39;ⓦ&#39;, <br>        &#39;⇣&#39;, &#39;｛&#39;, &#39;̄&#39;, &#39;↝&#39;, &#39;⎟&#39;, &#39;▍&#39;, &#39;❗&#39;, &#39;״&#39;, &#39;΄&#39;, &#39;▞&#39;, &#39;◁&#39;, &#39;⛄&#39;, &#39;⇝&#39;, &#39;⎪&#39;, &#39;♁&#39;, &#39;⇠&#39;, &#39;☇&#39;, &#39;✊&#39;, &#39;ி&#39;, &#39;｝&#39;, &#39;⭕&#39;, &#39;➘&#39;, <br>        &#39;⁀&#39;, &#39;☙&#39;, &#39;❛&#39;, &#39;❓&#39;, &#39;⟲&#39;, &#39;⇀&#39;, &#39;≲&#39;, &#39;ⓕ&#39;, &#39;⎥&#39;, &#39;\u06dd&#39;, &#39;ͤ&#39;, &#39;₋&#39;, &#39;̱&#39;, &#39;̎&#39;, &#39;♝&#39;, &#39;≳&#39;, &#39;▙&#39;, &#39;➭&#39;, &#39;܀&#39;, &#39;ⓖ&#39;, &#39;⇛&#39;, &#39;▊&#39;, <br>        &#39;⇗&#39;, &#39;̷&#39;, &#39;⇱&#39;, &#39;℅&#39;, &#39;ⓧ&#39;, &#39;⚛&#39;, &#39;̐&#39;, &#39;̕&#39;, &#39;⇌&#39;, &#39;␀&#39;, &#39;≌&#39;, &#39;ⓦ&#39;, &#39;⊤&#39;, &#39;̓&#39;, &#39;☦&#39;, &#39;ⓕ&#39;, &#39;▜&#39;, &#39;➙&#39;, &#39;ⓨ&#39;, &#39;⌨&#39;, &#39;◮&#39;, &#39;☷&#39;, <br>        &#39;◍&#39;, &#39;ⓚ&#39;, &#39;≔&#39;, &#39;⏩&#39;, &#39;⍳&#39;, &#39;℞&#39;, &#39;┋&#39;, &#39;˻&#39;, &#39;▚&#39;, &#39;≺&#39;, &#39;ْ&#39;, &#39;▟&#39;, &#39;➻&#39;, &#39;̪&#39;, &#39;⏪&#39;, &#39;̉&#39;, &#39;⎞&#39;, &#39;┇&#39;, &#39;⍟&#39;, &#39;⇪&#39;, &#39;▎&#39;, &#39;⇦&#39;, &#39;␝&#39;, <br>        &#39;⤷&#39;, &#39;≖&#39;, &#39;⟶&#39;, &#39;♗&#39;, &#39;̴&#39;, &#39;♄&#39;, &#39;ͨ&#39;, &#39;̈&#39;, &#39;❜&#39;, &#39;̡&#39;, &#39;▛&#39;, &#39;✁&#39;, &#39;➩&#39;, &#39;ா&#39;, &#39;˂&#39;, &#39;↥&#39;, &#39;⏎&#39;, &#39;⎷&#39;, &#39;̲&#39;, &#39;➖&#39;, &#39;↲&#39;, &#39;⩵&#39;, &#39;̗&#39;, &#39;❢&#39;, <br>        &#39;≎&#39;, &#39;⚔&#39;, &#39;⇇&#39;, &#39;̑&#39;, &#39;⊿&#39;, &#39;̖&#39;, &#39;☍&#39;, &#39;➹&#39;, &#39;⥊&#39;, &#39;⁁&#39;, &#39;✢&#39;]</pre><pre>def clean_punct(x):<br>  x = str(x)<br>  for punct in puncts:<br>    if punct in x:<br>      x = x.replace(punct, &#39; &#39;)<br>  return x</pre><h4>Correcting Spellings.</h4><p>This code corrects the misspellings appearing in the text. Also, words having different spellings in American English and British English are unified. Terms which are very close in meaning are unified, e.g., ‘1050ti’ and ‘1080ti’, both different models of Graphics Processing Units (GPUs) by Nvidia, are mapped to ‘gpu’; ‘altcoin’ and ‘litecoin’ are both mapped to ‘bitcoin’.</p><p><a href="https://www.kaggle.com/oysiyl/107-place-solution-using-public-kernel">Credits</a></p><pre>mispell_dict = {&#39;colour&#39;: &#39;color&#39;, &#39;centre&#39;: &#39;center&#39;, &#39;favourite&#39;: &#39;favorite&#39;, &#39;travelling&#39;: &#39;traveling&#39;, &#39;counselling&#39;: &#39;counseling&#39;, &#39;theatre&#39;: &#39;theater&#39;, &#39;cancelled&#39;: &#39;canceled&#39;, &#39;labour&#39;: &#39;labor&#39;, &#39;organisation&#39;: &#39;organization&#39;, &#39;wwii&#39;: &#39;world war 2&#39;, &#39;citicise&#39;: &#39;criticize&#39;, &#39;youtu &#39;: &#39;youtube &#39;, &#39;Qoura&#39;: &#39;Quora&#39;, &#39;sallary&#39;: &#39;salary&#39;, &#39;Whta&#39;: &#39;What&#39;, &#39;narcisist&#39;: &#39;narcissist&#39;, &#39;howdo&#39;: &#39;how do&#39;, &#39;whatare&#39;: &#39;what are&#39;, &#39;howcan&#39;: &#39;how can&#39;, &#39;howmuch&#39;: &#39;how much&#39;, &#39;howmany&#39;: &#39;how many&#39;, &#39;whydo&#39;: &#39;why do&#39;, &#39;doI&#39;: &#39;do I&#39;, &#39;theBest&#39;: &#39;the best&#39;, &#39;howdoes&#39;: &#39;how does&#39;, &#39;mastrubation&#39;: &#39;masturbation&#39;, &#39;mastrubate&#39;: &#39;masturbate&#39;, &quot;mastrubating&quot;: &#39;masturbating&#39;, &#39;pennis&#39;: &#39;penis&#39;, &#39;Etherium&#39;: &#39;bitcoin&#39;, &#39;narcissit&#39;: &#39;narcissist&#39;, &#39;bigdata&#39;: &#39;big data&#39;, &#39;2k17&#39;: &#39;2017&#39;, &#39;2k18&#39;: &#39;2018&#39;, &#39;qouta&#39;: &#39;quota&#39;, &#39;exboyfriend&#39;: &#39;ex boyfriend&#39;, &#39;airhostess&#39;: &#39;air hostess&#39;, &quot;whst&quot;: &#39;what&#39;, &#39;watsapp&#39;: &#39;whatsapp&#39;, &#39;demonitisation&#39;: &#39;demonetization&#39;, &#39;demonitization&#39;: &#39;demonetization&#39;, &#39;demonetisation&#39;: &#39;demonetization&#39;, <br>                &#39;electroneum&#39;:&#39;bitcoin&#39;,&#39;nanodegree&#39;:&#39;degree&#39;,&#39;hotstar&#39;:&#39;star&#39;,&#39;dream11&#39;:&#39;dream&#39;,&#39;ftre&#39;:&#39;fire&#39;,&#39;tensorflow&#39;:&#39;framework&#39;,&#39;unocoin&#39;:&#39;bitcoin&#39;,<br>                &#39;lnmiit&#39;:&#39;limit&#39;,&#39;unacademy&#39;:&#39;academy&#39;,&#39;altcoin&#39;:&#39;bitcoin&#39;,&#39;altcoins&#39;:&#39;bitcoin&#39;,&#39;litecoin&#39;:&#39;bitcoin&#39;,&#39;coinbase&#39;:&#39;bitcoin&#39;,&#39;cryptocurency&#39;:&#39;cryptocurrency&#39;,<br>                &#39;simpliv&#39;:&#39;simple&#39;,&#39;quoras&#39;:&#39;quora&#39;,&#39;schizoids&#39;:&#39;psychopath&#39;,&#39;remainers&#39;:&#39;remainder&#39;,&#39;twinflame&#39;:&#39;soulmate&#39;,&#39;quorans&#39;:&#39;quora&#39;,&#39;brexit&#39;:&#39;demonetized&#39;,<br>                &#39;iiest&#39;:&#39;institute&#39;,&#39;dceu&#39;:&#39;comics&#39;,&#39;pessat&#39;:&#39;exam&#39;,&#39;uceed&#39;:&#39;college&#39;,&#39;bhakts&#39;:&#39;devotee&#39;,&#39;boruto&#39;:&#39;anime&#39;,<br>                &#39;cryptocoin&#39;:&#39;bitcoin&#39;,&#39;blockchains&#39;:&#39;blockchain&#39;,&#39;fiancee&#39;:&#39;fiance&#39;,&#39;redmi&#39;:&#39;smartphone&#39;,&#39;oneplus&#39;:&#39;smartphone&#39;,&#39;qoura&#39;:&#39;quora&#39;,&#39;deepmind&#39;:&#39;framework&#39;,&#39;ryzen&#39;:&#39;cpu&#39;,&#39;whattsapp&#39;:&#39;whatsapp&#39;,<br>                &#39;undertale&#39;:&#39;adventure&#39;,&#39;zenfone&#39;:&#39;smartphone&#39;,&#39;cryptocurencies&#39;:&#39;cryptocurrencies&#39;,&#39;koinex&#39;:&#39;bitcoin&#39;,&#39;zebpay&#39;:&#39;bitcoin&#39;,&#39;binance&#39;:&#39;bitcoin&#39;,&#39;whtsapp&#39;:&#39;whatsapp&#39;,<br>                &#39;reactjs&#39;:&#39;framework&#39;,&#39;bittrex&#39;:&#39;bitcoin&#39;,&#39;bitconnect&#39;:&#39;bitcoin&#39;,&#39;bitfinex&#39;:&#39;bitcoin&#39;,&#39;yourquote&#39;:&#39;your quote&#39;,&#39;whyis&#39;:&#39;why is&#39;,&#39;jiophone&#39;:&#39;smartphone&#39;,<br>                &#39;dogecoin&#39;:&#39;bitcoin&#39;,&#39;onecoin&#39;:&#39;bitcoin&#39;,&#39;poloniex&#39;:&#39;bitcoin&#39;,&#39;7700k&#39;:&#39;cpu&#39;,&#39;angular2&#39;:&#39;framework&#39;,&#39;segwit2x&#39;:&#39;bitcoin&#39;,&#39;hashflare&#39;:&#39;bitcoin&#39;,&#39;940mx&#39;:&#39;gpu&#39;,<br>                &#39;openai&#39;:&#39;framework&#39;,&#39;hashflare&#39;:&#39;bitcoin&#39;,&#39;1050ti&#39;:&#39;gpu&#39;,&#39;nearbuy&#39;:&#39;near buy&#39;,&#39;freebitco&#39;:&#39;bitcoin&#39;,&#39;antminer&#39;:&#39;bitcoin&#39;,&#39;filecoin&#39;:&#39;bitcoin&#39;,&#39;whatapp&#39;:&#39;whatsapp&#39;,<br>                &#39;empowr&#39;:&#39;empower&#39;,&#39;1080ti&#39;:&#39;gpu&#39;,&#39;crytocurrency&#39;:&#39;cryptocurrency&#39;,&#39;8700k&#39;:&#39;cpu&#39;,&#39;whatsaap&#39;:&#39;whatsapp&#39;,&#39;g4560&#39;:&#39;cpu&#39;,&#39;payymoney&#39;:&#39;pay money&#39;,<br>                &#39;fuckboys&#39;:&#39;fuck boys&#39;,&#39;intenship&#39;:&#39;internship&#39;,&#39;zcash&#39;:&#39;bitcoin&#39;,&#39;demonatisation&#39;:&#39;demonetization&#39;,&#39;narcicist&#39;:&#39;narcissist&#39;,&#39;mastuburation&#39;:&#39;masturbation&#39;,<br>                &#39;trignometric&#39;:&#39;trigonometric&#39;,&#39;cryptocurreny&#39;:&#39;cryptocurrency&#39;,&#39;howdid&#39;:&#39;how did&#39;,&#39;crytocurrencies&#39;:&#39;cryptocurrencies&#39;,&#39;phycopath&#39;:&#39;psychopath&#39;,<br>                &#39;bytecoin&#39;:&#39;bitcoin&#39;,&#39;possesiveness&#39;:&#39;possessiveness&#39;,&#39;scollege&#39;:&#39;college&#39;,&#39;humanties&#39;:&#39;humanities&#39;,&#39;altacoin&#39;:&#39;bitcoin&#39;,&#39;demonitised&#39;:&#39;demonetized&#39;,<br>                &#39;brasília&#39;:&#39;brazilia&#39;,&#39;accolite&#39;:&#39;accolyte&#39;,&#39;econimics&#39;:&#39;economics&#39;,&#39;varrier&#39;:&#39;warrier&#39;,&#39;quroa&#39;:&#39;quora&#39;,&#39;statergy&#39;:&#39;strategy&#39;,&#39;langague&#39;:&#39;language&#39;,<br>                &#39;splatoon&#39;:&#39;game&#39;,&#39;7600k&#39;:&#39;cpu&#39;,&#39;gate2018&#39;:&#39;gate 2018&#39;,&#39;in2018&#39;:&#39;in 2018&#39;,&#39;narcassist&#39;:&#39;narcissist&#39;,&#39;jiocoin&#39;:&#39;bitcoin&#39;,&#39;hnlu&#39;:&#39;hulu&#39;,&#39;7300hq&#39;:&#39;cpu&#39;,<br>                &#39;weatern&#39;:&#39;western&#39;,&#39;interledger&#39;:&#39;blockchain&#39;,&#39;deplation&#39;:&#39;deflation&#39;, &#39;cryptocurrencies&#39;:&#39;cryptocurrency&#39;, &#39;bitcoin&#39;:&#39;blockchain cryptocurrency&#39;,}</pre><pre>def correct_mispell(x):<br>  words = x.split()<br>  for i in range(0, len(words)):<br>    if mispell_dict.get(words[i]) is not None:<br>      words[i] = mispell_dict.get(words[i])<br>    elif mispell_dict.get(words[i].lower()) is not None:<br>      words[i] = mispell_dict.get(words[i].lower())<br>        <br>  words = &quot; &quot;.join(words)<br>  return words</pre><h4>Stop Words</h4><p>Stop words are removed from the text.</p><p>Stop words are the most common words in any language (like articles, prepositions, pronouns, conjunctions, etc) and do not add much information to the text.</p><pre>def remove_stopwords(x):</pre><pre>x = [word for word in x.split() if word not in set(stopwords.words(&#39;english&#39;))]<br>  x = &#39; &#39;.join(x)<br>  return x</pre><h4>Clean Word Contractions</h4><p>Word contractions, e.g. “can’t”, “don’t”, “let’s” are cleaned.</p><p><a href="https://www.kaggle.com/theoviel/improve-your-score-with-text-preprocessing-v2">Credits</a></p><pre>contraction_mapping = {&quot;We&#39;d&quot;: &quot;We had&quot;, &quot;That&#39;d&quot;: &quot;That had&quot;, &quot;AREN&#39;T&quot;: &quot;Are not&quot;, &quot;HADN&#39;T&quot;: &quot;Had not&quot;, &quot;Could&#39;ve&quot;: &quot;Could have&quot;, &quot;LeT&#39;s&quot;: &quot;Let us&quot;, &quot;How&#39;ll&quot;: &quot;How will&quot;, &quot;They&#39;ll&quot;: &quot;They will&quot;, &quot;DOESN&#39;T&quot;: &quot;Does not&quot;, &quot;HE&#39;S&quot;: &quot;He has&quot;, &quot;O&#39;Clock&quot;: &quot;Of the clock&quot;, &quot;Who&#39;ll&quot;: &quot;Who will&quot;, &quot;What&#39;S&quot;: &quot;What is&quot;, &quot;Ain&#39;t&quot;: &quot;Am not&quot;, &quot;WEREN&#39;T&quot;: &quot;Were not&quot;, &quot;Y&#39;all&quot;: &quot;You all&quot;, &quot;Y&#39;ALL&quot;: &quot;You all&quot;, &quot;Here&#39;s&quot;: &quot;Here is&quot;, &quot;It&#39;d&quot;: &quot;It had&quot;, &quot;Should&#39;ve&quot;: &quot;Should have&quot;, &quot;I&#39;M&quot;: &quot;I am&quot;, &quot;ISN&#39;T&quot;: &quot;Is not&quot;, &quot;Would&#39;ve&quot;: &quot;Would have&quot;, &quot;He&#39;ll&quot;: &quot;He will&quot;, &quot;DON&#39;T&quot;: &quot;Do not&quot;, &quot;She&#39;d&quot;: &quot;She had&quot;, &quot;WOULDN&#39;T&quot;: &quot;Would not&quot;, &quot;She&#39;ll&quot;: &quot;She will&quot;, &quot;IT&#39;s&quot;: &quot;It is&quot;, &quot;There&#39;d&quot;: &quot;There had&quot;, &quot;It&#39;ll&quot;: &quot;It will&quot;, &quot;You&#39;ll&quot;: &quot;You will&quot;, &quot;He&#39;d&quot;: &quot;He had&quot;, &quot;What&#39;ll&quot;: &quot;What will&quot;, &quot;Ma&#39;am&quot;: &quot;Madam&quot;, &quot;CAN&#39;T&quot;: &quot;Can not&quot;, &quot;THAT&#39;S&quot;: &quot;That is&quot;, &quot;You&#39;ve&quot;: &quot;You have&quot;, &quot;She&#39;s&quot;: &quot;She is&quot;, &quot;Weren&#39;t&quot;: &quot;Were not&quot;, &quot;They&#39;ve&quot;: &quot;They have&quot;, &quot;Couldn&#39;t&quot;: &quot;Could not&quot;, &quot;When&#39;s&quot;: &quot;When is&quot;, &quot;Haven&#39;t&quot;: &quot;Have not&quot;, &quot;We&#39;ll&quot;: &quot;We will&quot;, &quot;That&#39;s&quot;: &quot;That is&quot;, &quot;We&#39;re&quot;: &quot;We are&quot;, &quot;They&#39;re&quot;: &quot;They&#39; are&quot;, &quot;You&#39;d&quot;: &quot;You would&quot;, &quot;How&#39;d&quot;: &quot;How did&quot;, &quot;What&#39;re&quot;: &quot;What are&quot;, &quot;Hasn&#39;t&quot;: &quot;Has not&quot;, &quot;Wasn&#39;t&quot;: &quot;Was not&quot;, &quot;Won&#39;t&quot;: &quot;Will not&quot;, &quot;There&#39;s&quot;: &quot;There is&quot;, &quot;Didn&#39;t&quot;: &quot;Did not&quot;, &quot;Doesn&#39;t&quot;: &quot;Does not&quot;, &quot;You&#39;re&quot;: &quot;You are&quot;, &quot;He&#39;s&quot;: &quot;He is&quot;, &quot;SO&#39;s&quot;: &quot;So is&quot;, &quot;We&#39;ve&quot;: &quot;We have&quot;, &quot;Who&#39;s&quot;: &quot;Who is&quot;, &quot;Wouldn&#39;t&quot;: &quot;Would not&quot;, &quot;Why&#39;s&quot;: &quot;Why is&quot;, &quot;WHO&#39;s&quot;: &quot;Who is&quot;, &quot;Let&#39;s&quot;: &quot;Let us&quot;, &quot;How&#39;s&quot;: &quot;How is&quot;, &quot;Can&#39;t&quot;: &quot;Can not&quot;, &quot;Where&#39;s&quot;: &quot;Where is&quot;, &quot;They&#39;d&quot;: &quot;They had&quot;, &quot;Don&#39;t&quot;: &quot;Do not&quot;, &quot;Shouldn&#39;t&quot;:&quot;Should not&quot;, &quot;Aren&#39;t&quot;:&quot;Are not&quot;, &quot;ain&#39;t&quot;: &quot;is not&quot;, &quot;What&#39;s&quot;: &quot;What is&quot;, &quot;It&#39;s&quot;: &quot;It is&quot;, &quot;Isn&#39;t&quot;:&quot;Is not&quot;, &quot;aren&#39;t&quot;: &quot;are not&quot;,&quot;can&#39;t&quot;: &quot;cannot&quot;, &quot;&#39;cause&quot;: &quot;because&quot;, &quot;could&#39;ve&quot;: &quot;could have&quot;, &quot;couldn&#39;t&quot;: &quot;could not&quot;, &quot;didn&#39;t&quot;: &quot;did not&quot;,  &quot;doesn&#39;t&quot;: &quot;does not&quot;, &quot;don&#39;t&quot;: &quot;do not&quot;, &quot;hadn&#39;t&quot;: &quot;had not&quot;, &quot;hasn&#39;t&quot;: &quot;has not&quot;, &quot;haven&#39;t&quot;: &quot;have not&quot;, &quot;he&#39;d&quot;: &quot;he would&quot;,&quot;he&#39;ll&quot;: &quot;he will&quot;, &quot;he&#39;s&quot;: &quot;he is&quot;, &quot;how&#39;d&quot;: &quot;how did&quot;, &quot;how&#39;d&#39;y&quot;: &quot;how do you&quot;, &quot;how&#39;ll&quot;: &quot;how will&quot;, &quot;how&#39;s&quot;: &quot;how is&quot;,  &quot;I&#39;d&quot;: &quot;I would&quot;, &quot;I&#39;d&#39;ve&quot;: &quot;I would have&quot;, &quot;I&#39;ll&quot;: &quot;I will&quot;, &quot;I&#39;ll&#39;ve&quot;: &quot;I will have&quot;,&quot;I&#39;m&quot;: &quot;I am&quot;, &quot;I&#39;ve&quot;: &quot;I have&quot;, &quot;i&#39;d&quot;: &quot;i would&quot;, &quot;i&#39;d&#39;ve&quot;: &quot;i would have&quot;, &quot;i&#39;ll&quot;: &quot;i will&quot;,  &quot;i&#39;ll&#39;ve&quot;: &quot;i will have&quot;,&quot;i&#39;m&quot;: &quot;i am&quot;, &quot;i&#39;ve&quot;: &quot;i have&quot;, &quot;isn&#39;t&quot;: &quot;is not&quot;, &quot;it&#39;d&quot;: &quot;it would&quot;, &quot;it&#39;d&#39;ve&quot;: &quot;it would have&quot;, &quot;it&#39;ll&quot;: &quot;it will&quot;, &quot;it&#39;ll&#39;ve&quot;: &quot;it will have&quot;,&quot;it&#39;s&quot;: &quot;it is&quot;, &quot;let&#39;s&quot;: &quot;let us&quot;, &quot;ma&#39;am&quot;: &quot;madam&quot;, &quot;mayn&#39;t&quot;: &quot;may not&quot;, &quot;might&#39;ve&quot;: &quot;might have&quot;,&quot;mightn&#39;t&quot;: &quot;might not&quot;,&quot;mightn&#39;t&#39;ve&quot;: &quot;might not have&quot;, &quot;must&#39;ve&quot;: &quot;must have&quot;, &quot;mustn&#39;t&quot;: &quot;must not&quot;, &quot;mustn&#39;t&#39;ve&quot;: &quot;must not have&quot;, &quot;needn&#39;t&quot;: &quot;need not&quot;, &quot;needn&#39;t&#39;ve&quot;: &quot;need not have&quot;,&quot;o&#39;clock&quot;: &quot;of the clock&quot;, &quot;oughtn&#39;t&quot;: &quot;ought not&quot;, &quot;oughtn&#39;t&#39;ve&quot;: &quot;ought not have&quot;, &quot;shan&#39;t&quot;: &quot;shall not&quot;, &quot;sha&#39;n&#39;t&quot;: &quot;shall not&quot;, &quot;shan&#39;t&#39;ve&quot;: &quot;shall not have&quot;, &quot;she&#39;d&quot;: &quot;she would&quot;, &quot;she&#39;d&#39;ve&quot;: &quot;she would have&quot;, &quot;she&#39;ll&quot;: &quot;she will&quot;, &quot;she&#39;ll&#39;ve&quot;: &quot;she will have&quot;, &quot;she&#39;s&quot;: &quot;she is&quot;, &quot;should&#39;ve&quot;: &quot;should have&quot;, &quot;shouldn&#39;t&quot;: &quot;should not&quot;, &quot;shouldn&#39;t&#39;ve&quot;: &quot;should not have&quot;, &quot;so&#39;ve&quot;: &quot;so have&quot;,&quot;so&#39;s&quot;: &quot;so as&quot;, &quot;this&#39;s&quot;: &quot;this is&quot;,&quot;that&#39;d&quot;: &quot;that would&quot;, &quot;that&#39;d&#39;ve&quot;: &quot;that would have&quot;, &quot;that&#39;s&quot;: &quot;that is&quot;, &quot;there&#39;d&quot;: &quot;there would&quot;, &quot;there&#39;d&#39;ve&quot;: &quot;there would have&quot;, &quot;there&#39;s&quot;: &quot;there is&quot;, &quot;here&#39;s&quot;: &quot;here is&quot;,&quot;they&#39;d&quot;: &quot;they would&quot;, &quot;they&#39;d&#39;ve&quot;: &quot;they would have&quot;, &quot;they&#39;ll&quot;: &quot;they will&quot;, &quot;they&#39;ll&#39;ve&quot;: &quot;they will have&quot;, &quot;they&#39;re&quot;: &quot;they are&quot;, &quot;they&#39;ve&quot;: &quot;they have&quot;, &quot;to&#39;ve&quot;: &quot;to have&quot;, &quot;wasn&#39;t&quot;: &quot;was not&quot;, &quot;we&#39;d&quot;: &quot;we would&quot;, &quot;we&#39;d&#39;ve&quot;: &quot;we would have&quot;, &quot;we&#39;ll&quot;: &quot;we will&quot;, &quot;we&#39;ll&#39;ve&quot;: &quot;we will have&quot;, &quot;we&#39;re&quot;: &quot;we are&quot;, &quot;we&#39;ve&quot;: &quot;we have&quot;, &quot;weren&#39;t&quot;: &quot;were not&quot;, &quot;what&#39;ll&quot;: &quot;what will&quot;, &quot;what&#39;ll&#39;ve&quot;: &quot;what will have&quot;, &quot;what&#39;re&quot;: &quot;what are&quot;,  &quot;what&#39;s&quot;: &quot;what is&quot;, &quot;what&#39;ve&quot;: &quot;what have&quot;, &quot;when&#39;s&quot;: &quot;when is&quot;, &quot;when&#39;ve&quot;: &quot;when have&quot;, &quot;where&#39;d&quot;: &quot;where did&quot;, &quot;where&#39;s&quot;: &quot;where is&quot;, &quot;where&#39;ve&quot;: &quot;where have&quot;, &quot;who&#39;ll&quot;: &quot;who will&quot;, &quot;who&#39;ll&#39;ve&quot;: &quot;who will have&quot;, &quot;who&#39;s&quot;: &quot;who is&quot;, &quot;who&#39;ve&quot;: &quot;who have&quot;, &quot;why&#39;s&quot;: &quot;why is&quot;, &quot;why&#39;ve&quot;: &quot;why have&quot;, &quot;will&#39;ve&quot;: &quot;will have&quot;, &quot;won&#39;t&quot;: &quot;will not&quot;, &quot;won&#39;t&#39;ve&quot;: &quot;will not have&quot;, &quot;would&#39;ve&quot;: &quot;would have&quot;, &quot;wouldn&#39;t&quot;: &quot;would not&quot;, &quot;wouldn&#39;t&#39;ve&quot;: &quot;would not have&quot;, &quot;y&#39;all&quot;: &quot;you all&quot;, &quot;y&#39;all&#39;d&quot;: &quot;you all would&quot;,&quot;y&#39;all&#39;d&#39;ve&quot;: &quot;you all would have&quot;,&quot;y&#39;all&#39;re&quot;: &quot;you all are&quot;,&quot;y&#39;all&#39;ve&quot;: &quot;you all have&quot;,&quot;you&#39;d&quot;: &quot;you would&quot;, &quot;you&#39;d&#39;ve&quot;: &quot;you would have&quot;, &quot;you&#39;ll&quot;: &quot;you will&quot;, &quot;you&#39;ll&#39;ve&quot;: &quot;you will have&quot;, &quot;you&#39;re&quot;: &quot;you are&quot;, &quot;you&#39;ve&quot;: &quot;you have&quot; }</pre><pre>def clean_contractions(text):</pre><pre>specials = [&quot;’&quot;, &quot;‘&quot;, &quot;´&quot;, &quot;`&quot;]<br>  for s in specials:<br>    text = text.replace(s, &quot;&#39;&quot;)<br>  <br>  text = &#39; &#39;.join([contraction_mapping[t] if t in contraction_mapping else t for t in text.split(&quot; &quot;)])<br>  return text</pre><h4>Word Lemmatizing</h4><p>Words occuring in the text are lemmatized.</p><p>Lemmatization is the process of grouping together the different inflected forms of a word so they can be analyzed as a single item. An example of lemmatization can be grouping together of the words “good”, “better” and “best”; “better” and “best” being the comparative and superlative forms of “good”.</p><pre>lemmatizer = WordNetLemmatizer()<br>def lemma_text(x):</pre><pre>x = x.split()<br>  x = [lemmatizer.lemmatize(word) for word in x]<br>  x = &#39; &#39;.join(x)<br>  return x</pre><h4>Capitalization</h4><p>Changing all the uppercase letters to lowercase letters.</p><pre>def change_tolower(x):<br>  <br>  x = x.lower()<br>  return x;</pre><h4>Utility function to perform all the above preprocessing techniques</h4><pre>def data_cleaning(x):<br>  <br>  x = clean_tag(x)<br>  x = clean_punct(x)<br>  x = correct_mispell(x)<br>  x = clean_contractions(x)<br>  x = change_tolower(x)<br>  x = remove_stopwords(x)<br>  x = lemma_text(x)<br>  return x</pre><h4>Preprocessing the data</h4><pre>df_train[&#39;preprocessed_question_text&#39;] = df_train[&#39;question_text&#39;].progress_map(lambda x: data_cleaning(x))</pre><h4>Train and test split</h4><p>The data is split 70:30 into training and testing data.</p><pre>X_train, X_test, y_train, y_test = train_test_split(df_train, df_train[&#39;target&#39;].values, test_size=0.3, random_state=1110)</pre><pre>print(&#39;X_train:&#39;, X_train.shape, &#39;Y_train:&#39;, y_train.shape)<br>print(&#39;X_test:&#39;,X_test.shape, &#39;Y_test:&#39;, y_test.shape)</pre><p>Output:</p><pre>X_train:  (914285, 4) Y_train:  (914285,)<br>X_test:  (391837, 4) Y_test:  (391837,)</pre><p>We check for the distribution of the label among the training and testing datasets.</p><pre>def plot_class_disb(class_disb, data, disb_name):<br>  class_disb.plot(kind=&quot;bar&quot;)<br>  plt.xlabel(&#39;class&#39;)<br>  plt.ylabel(&#39;Datapoints per class&#39;)<br>  plt.title(f&#39;Distribution of yi in {disb_name}&#39;)<br>  plt.grid(True)<br>  <br>  sorted_yi = np.argsort(-class_disb.values)<br>  print(disb_name,&#39;:&#39;)<br>  for i in sorted_yi:<br>    print(&#39;Number of data points in class&#39;, i, &#39;:&#39;, class_disb.values[i], &#39;(&#39;, np.round((class_disb.values[i]/data.shape[0]*100), 3), &#39;%)&#39;)<br>  <br>  print(&#39;-&#39;*50)</pre><pre>plt.subplot(1, 2, 1)<br>plot_class_disb(<br>  X_train[&#39;target&#39;].value_counts().sort_values(),<br>  X_train,<br>  &#39;TRAIN&#39;)<br>         <br>plt.subplot(1, 2, 2)<br>plot_class_disb(<br>  X_test[&#39;target&#39;].value_counts().sort_values(),<br>  X_test,<br>  &#39;TEST&#39;)</pre><pre>plt.subplots_adjust(right=2.0)<br>plt.subplots_adjust(top=1)<br>plt.show()</pre><p>Output:</p><pre>TRAIN :<br>Number of data points in class 1 : 857750 ( 93.816 %)<br>Number of data points in class 0 : 56535 ( 6.184 %)<br>--------------------------------------------------<br>TEST :<br>Number of data points in class 1 : 367562 ( 93.805 %)<br>Number of data points in class 0 : 24275 ( 6.195 %)<br>--------------------------------------------------</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*CjzyMP9wT_VT-Q5USG7KiQ.png" /></figure><p>The distribution of insincere questions is close to 6.2% in both datasets.</p><h3>Bag of words</h3><p>From W<a href="https://en.wikipedia.org/wiki/Bag-of-words_model">ikipedia</a>,</p><blockquote>The bag-of-words model is a simplifying representation used in natural language processing and information retrieval. In this model, a text is represented as the bag of its words, disregarding grammar and even word order but keeping multiplicity.</blockquote><p>For our initial model, we use a bag of words representation of the dataset.</p><pre>cv = CountVectorizer(stop_words=&#39;english&#39;, ngram_range=(1, 3))<br>cv.fit_transform(list(df_train[&#39;preprocessed_question_text&#39;].values))</pre><pre>X_train_ques = cv.transform(X_train[&#39;preprocessed_question_text&#39;].values)<br>X_test_ques = cv.transform(X_test[&#39;preprocessed_question_text&#39;].values)</pre><pre>print(X_train_ques.shape)<br>print(X_test_ques.shape)</pre><p>Output:</p><pre>(914285, 8078187)<br>(391837, 8078187)</pre><p>We have around 8M features.</p><h4>Logistic Regression with Bag of Words</h4><p>Logical Regression uses sigmoid function to estimate probabilities between dependent variable and one or more independent variables.</p><p>Here we use simple logistic regression as a baseline model.</p><pre>clf = LogisticRegression(C=1)<br>clf.fit(X_train_ques, y_train)</pre><p>Since logistic regression model outputs a probability we need to decide a threshold above which we classify the sample as 1 and below which as 0. Going through values in range of 0.1 to 0.201 and considering the threshold having largest F1 score.</p><pre>y_pred_val = clf.predict_proba(X_test_ques)[:,1]</pre><pre>for t in np.arange(0.1, 0.201, 0.001):<br>  t = np.round(t, 2)<br>  print(&#39;F1 score at threshold {0} is {1}&#39;.format(t, f1_score(y_test, (y_pred_val&gt;t).astype(&#39;int&#39;))))</pre><pre>t = 0.17<br>y_pred_test = clf.predict_proba(X_test_ques)[:,1]<br>print(&#39;F1-Score for Logistic Regression: &#39;, round(f1_score(y_test, (y_pred_test&gt;t)), 5))</pre><p>We get the best F1 score of 0.6 at t=0.17.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*FkuNSWTjudZ6rEwq0-iBAg.png" /><figcaption>Confusion matrix for Logistic Regression with Bag of Words</figcaption></figure><h4>Naive Bayes with Bag of Words</h4><p>Naive bayes classifiers work with common assumptions, i.e. all features being classified are independent. These classifiers are based on Bayes Theorem. There are multiple types of naive bayes classifiers, here we will use the Multinomial Naive Bayes model.</p><p>Multinomial Naive Bayes method is a probabilistic learning method commonly used in NLP. In this method to predict tag for each text, we calculate probabilities of each tag and chose the one with highest probability for the text. It works on following formula:</p><p>P(A|B) = P(A) * P(B|A)/P(B)</p><pre>mnb = MultinomialNB()<br>mnb.fit(X_train_ques, y_train)<br>y_pred_test = mnb.predict(X_test_ques)<br>print(&#39;F1-Score for Multinomial Naive Bayes: &#39;, round(f1_score(y_test, y_pred_test), 5))</pre><p>Output:</p><pre>F1-Score for Multinomial Naive Bayes:  0.4725</pre><p>We got a low value for F1 score. Hence we can say that probably Naive Bayes is not good for an imbalanced dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*qe_Wy8eca6nCuoEFe0xu7w.png" /><figcaption>Confusion Matrix for Naive Bayes with Bag of Words</figcaption></figure><h4>TF-IDF</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/0*RU4A5dWzg2xjRwMy" /><figcaption>TF-IDF</figcaption></figure><p>TF-IDF: Term Frequency- Inverse Document frequency<br>It is a technique to quantify a set of words in a set of documents. In this method score is computed for each word to signify its importance in the document and in corpus. It gives more weightage to words in a document than words in corpus.</p><pre>tfidf = TfidfVectorizer(stop_words=&#39;english&#39;, ngram_range=(1, 3))<br>tfidf.fit_transform(list(df_train[&#39;preprocessed_question_text&#39;].values))<br> <br>X_train_ques = tfidf.transform(X_train[&#39;preprocessed_question_text&#39;].values)<br>X_test_ques = tfidf.transform(X_test[&#39;preprocessed_question_text&#39;].values)<br> <br>print(X_train_ques.shape)<br>print(X_test_ques.shape)</pre><p>Output:</p><pre>(914285, 8078187)<br>(391837, 8078187)</pre><p>We have about 8M features.</p><h4>Logistic Regression with TF-IDF</h4><pre>clf = LogisticRegression(C=1)<br>clf.fit(X_train_ques, y_train)</pre><pre>y_pred_val = clf.predict_proba(X_test_ques)[:,1]</pre><pre>for t in np.arange(0.1, 0.201, 0.001):<br>  t = np.round(t, 2)<br>  print(&#39;F1 score at threshold {0} is {1}&#39;.format(t, f1_score(y_test, (y_pred_val&gt;t).astype(&#39;int&#39;))))</pre><pre>t = 0.18<br>y_pred_test = clf.predict_proba(X_test_ques)[:,1]<br>print(&#39;F1-Score for Logistic Regression: &#39;, round(f1_score(y_test, (y_pred_test&gt;t)), 5))</pre><p>We get largest F1 score of 0.56 at t=0.18</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*j95-6dZpOkvTZse7tydUrQ.png" /><figcaption>Confusion Matrix for Logistic Regression with Bag of Words</figcaption></figure><h3>Pre Trained Word Embeddings</h3><p>Pre-trained word embeddings are embeddings learned in one task and are used for solving other similar tasks. These are a form of transfer learning, as they are trained on large datasets and then used in solving other similar tasks. These capture the semantics and syntactic meaning of words.</p><p>We will be using Glove vectors, they are trained on wikipedia text. They have around 6B tokens, 400K vocab and around 300 dimensions.</p><p>Downloading pre trained word embeddings:</p><pre>!wget &#39;<a href="https://huggingface.co/stanfordnlp/glove/resolve/main/glove.6B.zip&#39;">https://huggingface.co/stanfordnlp/glove/resolve/main/glove.6B.zip&#39;</a></pre><p>Now we use tokenizer to convert sentences into numerical vectors. It first creates a dictionary of all distinct words and assigns them an index. Then at a later stage the words in each sentence are replaced with its index.</p><pre>tokenizer = Tokenizer()<br>tokenizer.fit_on_texts(sentences)</pre><p>Converting the sentences into sequence of numbers</p><pre>sequences = tokenizer.texts_to_sequences(sentences)</pre><p>Since our sentences can be of different length we need to pad them so that all of them become equal length to feed into our neural network. We will be padding them at the back:</p><pre>padded = pad_sequences(sequences, maxlen=max_length, padding=&#39;post&#39;, truncating=&#39;post&#39;)</pre><p>Creating train-test split</p><p>The data is split 70:30 into training and testing data</p><pre>x_train, x_test, y_train, y_test = train_test_split(padded, df_train[&#39;target&#39;].values, test_size=0.3, random_state=1110)<br> <br>print(&#39;X_train: &#39;, x_train.shape,&#39;Y_train: &#39;, y_train.shape)<br>print(&#39;X_test: &#39;,x_test.shape,&#39;Y_test: &#39;, y_test.shape)</pre><p>We set the number of dimensions of pretrained embeddings as 300. Now we create an embeddings_index dictionary where the key is words in our vocabulary and the value is the 300 dimension vector representation of that corresponding word, which we read from the downloaded word embedding file.</p><pre>embeddings_index = {}<br> <br>with open(&#39;/content/glove.6B.300d.txt&#39;,encoding=&quot;utf-8&quot;) as f:<br>  for line in f:<br>    values = line.split()<br>    word = values[0]<br>    coefs = np.asarray(values[1:], dtype=&#39;float32&#39;)<br>    embeddings_index[word] = coefs</pre><p>Now using this embeddings_index we create an embeddings_matrix. For this we vertically stack the vector representation of each word in our vocabulary.</p><pre>embeddings_matrix = np.zeros((vocab_size, embedding_dim))<br> <br>for word, i in word_index.items():<br>  embedding_vector = embeddings_index.get(word);<br>  if embedding_vector is not None:<br>    embeddings_matrix[i] = embedding_vector;<br> <br>print(embeddings_matrix.shape)</pre><p>Now for classification we create a keras model using previously calculated embeddings_matrix.The first layer is the embedding layer with weights as our embedding_matrix and trainable=False. Since we do not want to train it again. We use sigmoid as the final layer for classification.</p><pre>model = tf.keras.Sequential([<br>  tf.keras.layers.Embedding(vocab_size, embedding_dim, input_length=max_length,weights=[embeddings_matrix], trainable=False),<br>  tf.keras.layers.Dropout(0.2),<br>  tf.keras.layers.Conv1D(64, 5, activation=&#39;relu&#39;),<br>  tf.keras.layers.MaxPooling1D(pool_size=4),<br>  tf.keras.layers.LSTM(64),<br>  tf.keras.layers.Dense(1, activation=&#39;sigmoid&#39;)<br>])<br>model.compile(loss=&#39;binary_crossentropy&#39;,optimizer=&#39;adam&#39;,metrics=[&#39;accuracy&#39;,tf.keras.metrics.Precision(),tf.keras.metrics.Recall(),tf.keras.metrics.FalseNegatives(),tf.keras.metrics.FalsePositives(),tf.keras.metrics.TrueNegatives(),tf.keras.metrics.TruePositives()])<br>model.summary()</pre><p>Output:</p><pre>Model: &quot;sequential_1&quot;<br>_________________________________________________________________<br> Layer (type)                Output Shape              Param #  <br>=================================================================<br> embedding_1 (Embedding)     (None, 86, 300)           57634800  <br>                                                                 <br> dropout_1 (Dropout)         (None, 86, 300)           0        <br>                                                                 <br> conv1d_1 (Conv1D)           (None, 82, 64)            96064    <br>                                                                 <br> max_pooling1d_1 (MaxPooling  (None, 20, 64)           0        <br> 1D)                                                            <br>                                                                 <br> lstm_1 (LSTM)               (None, 64)                33024    <br>                                                                 <br> dense_1 (Dense)             (None, 1)                 65        <br>                                                                 <br>=================================================================<br>Total params: 57,763,953<br>Trainable params: 129,153<br>Non-trainable params: 57,634,800<br>_________________________________________________________________</pre><p>Training our model</p><pre>num_epochs = 17<br>history = model.fit(x_train, y_train, epochs=num_epochs,validation_data=(x_test, y_test), verbose=2)</pre><p>After 17 epochs we can observe:</p><pre>precision = 0.6337<br>recall = 0.5330.<br>F1 score = 0.5790</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*GB8oI6KzO2Cn5nGw1qV5lw.png" /><figcaption>Confusion Matrix with Word Embeddings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*uj5WTOzd1UM1IMVWA67HKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*UmtGTWXjfElHyqoDZ15brA.png" /></figure><h4>Comparison of Methods Used</h4><p>We compare various methods used based on achieved F1 Score:</p><pre>methods=[&#39;BOW-LR&#39;,&#39;BOW-NB&#39;,&#39;TF-IDF-LR&#39;,&#39;TF_IDF-NB&#39;,&#39;RNN&#39;]<br>f1_score=[0.60289,0.4725,0.56088,0.00016,0.5790]<br>plt.figure().set_size_inches(10.5, 6.5)<br>plt.bar(methods, f1_score, color =&#39;green&#39;,width = 0.4)<br>plt.ylim(0,0.65)<br>plt.xlabel(&quot;Methods&quot;)<br>plt.ylabel(&quot;F1 score&quot;)<br>for i, v in enumerate(f1_score):<br>  plt.text(i-0.25, v+0.02, &quot; &quot;+str(round(v,5)), color=&#39;black&#39;, va=&#39;center&#39;, fontweight=&#39;bold&#39;)<br>plt.show()</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*E7iKXy4njTmDMayEnGFegQ.png" /></figure><h4>Conclusion</h4><p>In this task, the Bag of Words model with Naive Bayes didn’t perform as well as other models. Bog of Words with Logistic Regression, TF-IDF with Logistic Regression and Word Embeddings with Neural Network give similar results.</p><h4>References</h4><p>[1] <a href="https://www.researchgate.net/profile/Prateek-Nima-2/publication/334549103_Quora_Insincere_Questions_Classification/links/5d30d8fb92851cf440900e16/Quora-Insincere-Questions-Classification.pdf">Mungekar, Akshay, et al. “Quora insincere question classification.” National College of Ireland (2019)</a></p><p>[2] <a href="https://github.com/ronakvijay/Quora_Insincere_Questions/blob/master/QIQC_LR.ipynb">https://github.com/ronakvijay/Quora_Insincere_Questions/blob/master/QIQC_LR.ipynb</a></p><p>[3] <a href="https://www.kaggle.com/c/quora-insincere-questions-classification/data">https://www.kaggle.com/c/quora-insincere-questions-classification/data</a></p><p>[4] <a href="https://www.kaggle.com/canming/ensemble-mean-iii-64-36">https://www.kaggle.com/canming/ensemble-mean-iii-64-36</a></p><p>[5] <a href="https://www.kaggle.com/theoviel/improve-your-score-with-text-preprocessing-v2">https://www.kaggle.com/theoviel/improve-your-score-with-text-preprocessing-v2</a></p><p>[6] <a href="https://huggingface.co/stanfordnlp/glove/resolve/main/glove.6B.zip">https://huggingface.co/stanfordnlp/glove/resolve/main/glove.6B.zip</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ab6add470fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>