<?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 Apil Khanal on Medium]]></title>
        <description><![CDATA[Stories by Apil Khanal on Medium]]></description>
        <link>https://medium.com/@apilkhanal10?source=rss-3a63abcfed38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*otB0Ub7P2Ezjxlgmu4DmpA.jpeg</url>
            <title>Stories by Apil Khanal on Medium</title>
            <link>https://medium.com/@apilkhanal10?source=rss-3a63abcfed38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:46:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apilkhanal10/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[EnDcode : My First Python Package]]></title>
            <link>https://medium.com/@apilkhanal10/endcode-my-first-python-package-b49d45c952d1?source=rss-3a63abcfed38------2</link>
            <guid isPermaLink="false">https://medium.com/p/b49d45c952d1</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python-packages]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Apil Khanal]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 11:34:51 GMT</pubDate>
            <atom:updated>2026-07-24T11:34:51.124Z</atom:updated>
            <content:encoded><![CDATA[<p>Publishing a package that others can install via pip has got to be the best feeling I’ve had as a developer. It all started out with curiosity on how the python packages are built. I found out that you can build your own and publish it it to the web. So i got to work and in about 5 minutes wrote 2 VERY simple encoding and decoding functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*w9quJ7dpYzmN4plNz1DJhg.png" /></figure><p>They basically work on a “factor” as i like to call it and for every single letter in the message, we move up in the alphabet factor times. I saw this type of encoding in a Minecraft ARG and thought it was cool hence i did it myself.</p><p>Then i wrote a pyproject.toml file as i heard it was the new industry standard instead of setup.py according to a engineer on reddit. I used MIT license. Then I used Twine and Build, simply following the documentation on “<a href="https://packaging.python.org/en/latest/tutorials/packaging-projects/">https://packaging.python.org/en/latest/tutorials/packaging-projects/</a>” and voila! The package was complete</p><p>Check it out yourself</p><p>pip install apk-hanal-endcode</p><p>On a side note, If u ever see me do some bad practices in code, PLEASE reach out <a href="https://www.instagram.com/apk.hanal/">https://www.instagram.com/apk.hanal/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b49d45c952d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KhabarMeter: What It does]]></title>
            <link>https://medium.com/@apilkhanal10/khabarmeter-what-it-does-e4907941d9c3?source=rss-3a63abcfed38------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4907941d9c3</guid>
            <dc:creator><![CDATA[Apil Khanal]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 12:31:31 GMT</pubDate>
            <atom:updated>2026-04-20T12:31:31.747Z</atom:updated>
            <content:encoded><![CDATA[<p>How it works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SebjoAep1RajpzUcc7QX2w.png" /></figure><p>So as shown above, the first thing you see is the type of news articles or the actual topic of the articles. In this instance it is economic articles and we have in total 20 of them. These are just the most recent ones for us. They are labeled as positive ,negative and neutral.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*xE2MrVS4zdWCEXGg7GedCw.png" /></figure><p>Again, a graph that visually represents the same thing. This was written in JS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VLwLyKFWl6qJdHuhS713gQ.png" /></figure><p>Now heres the exciting part. We see the headlines of all the articles and their sentiment along with the best feature of the model, the confidence it has in its choice. Actually, the model gave out a number from 0–1 but to make it visible to the user I multiplied it by 100 to make it seem like a percentage. If you click on the article heading, it will redirect you to the article itself and you can have a read to test whether the model is correct or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*uaax3o7OCDrhyhzyDYl2bQ.png" /></figure><p>Same things for politics. Currently, Im only doing this analysis for politics and economy as those are the things people really care about the most. Sports wont effect your life as much as a increase in Petrol prices will.</p><p>Creator,</p><p>Apil Khanal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4907941d9c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KhabarMeter: A sentiment analysis of Nepali News Outlets]]></title>
            <link>https://medium.com/@apilkhanal10/khabarmeter-a-sentiment-analysis-of-nepali-news-outlets-79a1883fc608?source=rss-3a63abcfed38------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a1883fc608</guid>
            <category><![CDATA[aspiring-developer]]></category>
            <category><![CDATA[software-devleopment]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nepali-news]]></category>
            <dc:creator><![CDATA[Apil Khanal]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 12:23:46 GMT</pubDate>
            <atom:updated>2026-04-21T12:49:19.338Z</atom:updated>
            <content:encoded><![CDATA[<p>KhabarMeter is a sentiment analysis of Nepali Economic and Politics news articles scraped from Onlinekhabar’s english version and The Kathmandu Post. <a href="https://github.com/APK-hanal/KhabarMeter">https://github.com/APK-hanal/KhabarMeter</a> This is the repo of the app and <a href="https://khabarmeter.onrender.com/">https://khabarmeter.onrender.com/</a> This is the working temporary website deployed via Render.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OTKtsYN9vLn1jCBVhsOSkw.png" /></figure><p>Background:</p><p>We start at around the 11th of April. I was sitting across the table from my dad when he showed my mom a news article. I remember thinking “What could be so interesting in reading an article”. Maybe I was being ignorant because I didn’t understand what the fuss was all about so I went on a news site and clicked on an article. Being my unemployed self I read through it all. At the end of it I realized the article was so boring to read through. It was just some article about Gautam Buddha airport. It consumed a significant amount of time for me and I realized too late. I didn&#39;t think much of it until I sat at my laptop. I’d already created a project that revolved around problems in my locality while integrating ML into it. So I thought I could do it again but instead of a Random Forest Regressor, I’d use NLP(Natural Language Processing). Then I looked for models and found nearly nothing for Nepali writing. Labeling my own data would be too hectic for me then so I went with English models. I decided to use Huggingface (specifically ‘cardiffnlp/twitter-roberta-base-sentiment-latest’ which was trained on tweets). The hardest part was actually figuring out the specific layout of the headlines and saving their links not the ML, just the scraping. I got it done in just under 2 days worth of work and also one extra day to add The Kathmandu Post a week later. I couldn’t describe the frustration of having to look up how to use the model again and again but I got it done, uploaded it to Render, and it worked. I used some JS for the frontend and the graphs. The website is deployed at <a href="https://khabarmeter.onrender.com/">khabarmeter.onrender.com</a> and although it does take a minute to load, Im extremely proud of the interface and the data itself. At first, it was just OnlineKhabar but then after researching Nepali NLP models, I realized I had to train one myself and that would take around 6 months so I added another news outlet in the meantime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6knRKXCeW6FKxm2AV-1dqA.png" /></figure><p>Drawbacks:</p><p>Although this is a writing about my project thats supposed to make me look good, I cant help but be transparent about the drawbacks. The model was trained on twitter tweets and not on news articles which makes some sentiment analyses kinda inaccurate. The bigger issue was that it only worked for English articles, because Nepali news outlets don’t really care about their English versions. They focus on Nepali articles, and that limited how much difference the app could actually make. So I kept building. I added The Kathmandu Post as a second source, rewrote the scraping pipeline to handle both sites, and combined everything into a single feed. The app now covers two of Nepal’s major English outlets. But I am now actively developing a model trained on Nepali data to eventually close the real gap.</p><p>Creator,</p><p>Apil Khanal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a1883fc608" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>