<?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 Sudhir Adhikari on Medium]]></title>
        <description><![CDATA[Stories by Sudhir Adhikari on Medium]]></description>
        <link>https://medium.com/@mesudhir?source=rss-363f0ecbcc62------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Lbg1FMFUBprquzK4.jpg</url>
            <title>Stories by Sudhir Adhikari on Medium</title>
            <link>https://medium.com/@mesudhir?source=rss-363f0ecbcc62------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:34:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mesudhir/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[The Impact of News Sentiment Analysis on Decision-Making: A Look at Todayns.com]]></title>
            <link>https://medium.com/@mesudhir/the-impact-of-news-sentiment-analysis-on-decision-making-a-look-at-todayns-com-3315921edb14?source=rss-363f0ecbcc62------2</link>
            <guid isPermaLink="false">https://medium.com/p/3315921edb14</guid>
            <dc:creator><![CDATA[Sudhir Adhikari]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 02:31:38 GMT</pubDate>
            <atom:updated>2023-12-28T02:31:38.463Z</atom:updated>
            <content:encoded><![CDATA[<p>In an era where information overload is commonplace, discerning the tone and sentiment behind the news becomes crucial for making informed decisions. <a href="https://www.todayns.com/">Todayns.com</a> (Today’s News Sentiment) emerges as a groundbreaking platform, offering a unique news sentiment analysis service that benefits its users in various decision-making processes. This article delves into the innovative approach of <a href="https://www.todayns.com/">Todayns.com</a> and how it’s changing how we consume news for better decision-making.</p><h3>Understanding News Sentiment Analysis</h3><p>News sentiment analysis is a blend of data analytics and natural language processing to determine a text&#39;s emotional tone. <a href="https://www.todayns.com/">Todayns.com</a> leverages this technology to analyze news content, offering insights into whether the overall sentiment of a news piece is positive, negative, or neutral.</p><h3>Applications in Various Domains</h3><h4>Financial Markets and Investments</h4><p>Investors can greatly benefit from sentiment analysis in making investment decisions. By understanding the news sentiment, investors can gauge market trends and investor confidence, aiding in more strategic investment choices.</p><h4>Political Decision-Making</h4><p>Political analysts and strategists can use <a href="https://www.todayns.com/">Todayns.com</a> to assess public sentiment on policy decisions, political events, or campaigns. This tool can help shape political strategies and understand public opinion trends.</p><h4>Business Strategy and Market Research</h4><p>Businesses can analyze news sentiment to understand the market swing. This insight is invaluable for timing their future strategies to gain a competitive advantage.</p><h4>Personal Decision-Making</h4><p>Individuals can use <a href="https://www.todayns.com/">Todayns.com</a> for personal decisions like travel planning by analyzing sentiments about general news or safety concerns through news sentiments.</p><h4>Features of <a href="https://www.todayns.com/">Todayns.com</a></h4><ol><li>Real-Time Analysis: <a href="https://www.todayns.com/">Todayns.com</a> provides sentiment analysis in almost real-time, allowing users to stay updated with the latest trends and sentiments.</li><li>User-Friendly Interface: The platform offers an intuitive, minimal interface, making it easy for users to navigate and interpret the data.</li><li>Accuracy and Reliability: Leveraging advanced algorithms, <a href="https://www.todayns.com/">Todayns.com</a> ensures high accuracy in its sentiment analysis.</li></ol><h3>Impact on Decision-Making</h3><p>The ability to analyze the sentiment of news articles offers a nuanced understanding of public opinion and trends. For decision-makers in finance, politics, or business, this translates to more informed and strategic decisions. The platform&#39;s almost real-time nature ensures timely and relevant decisions.</p><h3>Conclusion</h3><p><a href="https://www.todayns.com/">Todayns.com</a> stands out as a pioneering platform in news sentiment analysis. By offering deep insights into the emotional undertones of news, it empowers users across various sectors to make better-informed decisions. As we navigate through an increasingly complex information landscape, tools like <a href="https://www.todayns.com/">Todayns.com</a> become essential in cutting through the noise and understanding the true sentiment behind the news.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3315921edb14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your chatGPT using Python]]></title>
            <link>https://medium.com/@mesudhir/build-your-chatgpt-using-python-6acc77c9168?source=rss-363f0ecbcc62------2</link>
            <guid isPermaLink="false">https://medium.com/p/6acc77c9168</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sudhir Adhikari]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 21:13:56 GMT</pubDate>
            <atom:updated>2022-12-31T21:16:19.968Z</atom:updated>
            <content:encoded><![CDATA[<p>Building your own chatbot with OpenAI’s API can be fun and educational project. In this blog, we will go through steps to build a chatbot using OpenAI’s GPT-3 API.</p><p>Before we begin, you will need to sign up for an OpenAI API key. You can do this by going to the OpenAI website and creating an account.</p><p><a href="https://beta.openai.com/account/api-keys">https://beta.openai.com/</a></p><p>Once you have your API key, you are ready to start.</p><p><strong>Step 1:</strong></p><p>You will need the below-listed python packages</p><p>I. openai</p><p>II. gradio</p><p><strong>Step 2:</strong></p><p>Write a script for your chatbot.</p><pre>import os<br>import openai<br>import gradio as gr <br><br>YOUR_API_KEY = &quot;sk-xxxxxxxxxxxxxxxxxxxxxxx&quot;  <br>openai.api_key = YOUR_API_KEY<br><br>start_sequence = &quot;\AI:&quot;<br>restart_sequence = &quot;\Human:&quot;<br><br>prompt = &quot;The following is a conversation with an AI assistant: &quot;<br><br>def openai_create(prompt):<br>    response = openai.Completion.create(<br>           model = &quot;text-davinci-003&quot;,<br>           prompt = prompt,<br>           temperature = 0.9,<br>           max_tokens=150, <br>           top_p=1,<br>           frequency_penalty=0, <br>           presence_penalty=0.6, <br>           stop=[&quot; Human:&quot;, &quot; AI:&quot;]<br>       ) <br>    return response.choices[0].text<br><br>def chatgpt_clone(input, history):<br>    history = history or []<br>    s = list(sum(history, ()))<br>    s.append(input)<br>    inp = &#39; &#39;.join(s)<br>    output = openai_create(inp)<br>    history.append((input, output))<br>    return history, history <br><br>block = gr.Blocks()<br><br>with block:<br>    gr.Markdown(&quot;&quot;&quot;&lt;h1&gt;&lt;center&gt;My chatGPT&lt;/center&gt;&lt;/h1&gt;&quot;&quot;&quot;)<br>    chatbot = gr.Chatbot()<br>    message = gr.Textbox(placeholder=prompt)<br>    state = gr.State()<br>    submit = gr.Button(&quot;SEND&quot;)<br>    submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])<br>    <br>block.launch(debug = True)</pre><p>The function openai_create() is using the OpenAI API to generate text based on the provided prompt. The function takes in a single argument, prompt, which is a string that represents the starting point for the text generation.</p><p>The function uses the Completion.create() method from the OpenAI API to generate the text. This method has several parameters that control the behavior of the text generation:</p><ul><li>model: This parameter specifies which GPT-3 model to use for the text generation. In this case, the model &quot;text-davinci-003&quot; is being used.</li><li>prompt: This parameter is the prompt that is provided to the function as an argument. It is used as the starting point for the text generation.</li><li>temperature: This parameter controls the randomness of the generated text. A higher temperature will result in more varied and creative responses, while a lower temperature will result in more predictable responses.</li><li>max_tokens: This parameter specifies the maximum number of tokens (individual words or punctuation marks) that should be generated in the response.</li><li>top_p: This parameter controls the likelihood of generating more common responses. A higher value will result in more common responses, while a lower value will allow for more varied responses.</li><li>frequency_penalty: This parameter controls the likelihood of generating less common responses. A higher value will result in less common responses, while a lower value will allow for more common responses.</li><li>presence_penalty: This parameter controls the likelihood of generating responses that contain specific words or phrases. A higher value will result in responses that are more likely to contain these words or phrases, while a lower value will allow for more varied responses.</li><li>stop: This parameter specifies a list of words or phrases that will stop the text generation when encountered. In this case, the text generation will stop when the words &quot;Human:&quot; or &quot;AI:&quot; are encountered.</li></ul><p>Finally, the function returns the generated text by accessing the text attribute of the choices[0] element of the response object. This is the first choice returned by the Completion.create() method and it represents the most likely completion of the prompt.</p><p><a href="https://beta.openai.com/account/api-keys"><strong>Step 3:</strong></a></p><p>Finally, if you run the above python script, you will find a server started locally on port 7860.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*mfHLIlffmbg9qUg9KQofeA.png" /></figure><p>Open the link in your browser and start asking questions :) and have fun!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzuPpKu3KDZIbbxoH1lDag.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6acc77c9168" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install and run python program in mainframe z/OS — non smpe]]></title>
            <link>https://medium.com/@mesudhir/install-and-run-python-program-in-mainframe-z-os-non-smpe-9293ba3d4d8d?source=rss-363f0ecbcc62------2</link>
            <guid isPermaLink="false">https://medium.com/p/9293ba3d4d8d</guid>
            <dc:creator><![CDATA[Sudhir Adhikari]]></dc:creator>
            <pubDate>Sun, 11 Dec 2022 23:51:49 GMT</pubDate>
            <atom:updated>2022-12-11T23:51:49.227Z</atom:updated>
            <content:encoded><![CDATA[<h3>Install and run python program in mainframe z/OS — non smpe</h3><p>In this article, everything will be to the point that will guide you (reader) through preparing an environment for installing python, installing the python itself (non smpe version), and finally run simple hello world program in z/OS environment. In next article, I will guide you through <strong>zoau</strong> <strong>package</strong> installation process and will write some more advance python script (submitting job and analyzing the output).</p><p>STEPS:</p><p>A. Preparing an environment</p><ol><li>Create a zFS file and mount the file to your current USS directory where you want to install python</li></ol><p>//CREATCSI EXEC PGM=IDCAMS,REGION=1M</p><p>//SYSPRINT DD SYSOUT=*</p><p>//SYSUDUMP DD SYSOUT=*</p><p>//AMSDUMP DD SYSOUT=*</p><p>//SYSIN DD *</p><p>DEFINE CLUSTER(NAME(HLQ.USER.ZFS) -</p><p>CYLINDER(500 0) -</p><p>LINEAR -</p><p>SHAREOPTIONS(3,3) -</p><p>VOLUME(VOLA))</p><p>/*</p><p>//***********************************************************</p><p>//***********************************************************</p><p>//***********************************************************</p><p>//* FORMAT — ZFS FILE SYSTEM</p><p>//***********************************************************</p><p>//FORMAT EXEC PGM=IOEAGFMT,REGION=0M,</p><p>// PARM=(‘-aggregate HLQ.USER.ZFS -compat’)</p><p>//SYSPRINT DD SYSOUT=*</p><p>//SYSUDUMP DD SYSOUT=*</p><p>//STDOUT DD SYSOUT=*</p><p>//STDERR DD SYSOUT=*</p><p>//CEEDUMP DD SYSOUT=*</p><p>//*</p><p>//MOUNT EXEC PGM=IKJEFT01,REGION=0M</p><p>//SYSTSPRT DD SYSOUT=*</p><p>//SYSTSOUT DD SYSOUT=*</p><p>//SYSTSIN DD *</p><p>MOUNT FILESYSTEM(‘HLQ.USER.ZFS’) +</p><p>MOUNTPOINT(‘/u/users/’) +</p><p>TYPE(ZFS) MODE(RDWR) +</p><p>PARM(‘AGGRGROW’)</p><p>/*</p><ul><li>Make sure you have enabled Read/Write access your zFS file.</li></ul><p>2. Download the python pax file from the ibm link below and ftp to the USS directory created/mounted in step 1.</p><p><a href="https://www.ibm.com/products/open-enterprise-python-zos">IBM Open Enterprise SDK for Python - Overview</a></p><p>In the command prompt, go to the directory where you have downloaded the python pax file and then follow the prompt below</p><p>:&gt;ftp mainframe_host_ip_address</p><p>username: xxxxxxx</p><p>pass: xxxxxxxx</p><p>ftp&gt;bin</p><p>ftp&gt;put HAMB3A0.nonsmpe.pax.Z</p><p>B. Install Python</p><ol><li>Go to the UNIX directory where you have uploaded your python .pax file</li></ol><p>&gt; cd /u/users</p><p>2. Execute below command</p><p>/u/users&gt;pax -p p -r -f HAMB3A0.nonsmpe.pax.z</p><p>Once above command is successfully executed, you will see python got installed in</p><p>/u/users/python/usr/lpp/IBM/cyp/v3r10/pyz</p><p>3. Next step is to set up environment variables. Execute below commands:</p><p>&gt;export PATH=/u/users/python/usr/lpp/IBM/cyp/v3r10/pyz/bin:$PATH</p><p>&gt;export LIBPATH=/u/users/python/usr/lpp/IBM/cyp/v3r10/pyz/lib:$LIBPATH</p><p>&gt;export _BPXK_AUTOCVT=’ON’</p><p>&gt;export _CEE_RUNOPTS=’FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)’</p><p>&gt;export _TAG_REDIR_ERR=txt</p><p>&gt;export _TAG_REDIR_IN=txt</p><p>&gt;export _TAG_REDIR_OUT=txt</p><p>Note: Every time you logout and log back in you will need to set these path and other variables. To avoid this, you can add or update these export commands to .profile file in your USS home directory.</p><p>4. Finally, if you key in python — version in the command prompt, you should be able to see your python version as 3.x.x (3.10.5 in my case).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*OZ7XIJnyr8FF0RFC2mgX6A.png" /></figure><p>C. Write and run your first python program</p><ol><li>Finally CD into the directory where you want to write your first python program and open the text editor available in your shop (oedit in my case).</li></ol><p>2. Simply type print(‘Hello World’) in the first line and save it as hello.py</p><p>print(‘Hello World’)</p><p>3. Once you are back to the directory where you have hello.py, execute below command</p><p>&gt; python hello.py</p><p>Hello World!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*c2IOMyY63FlgLCBH_U5vHw.png" /></figure><p>You should be able to see Hello World.</p><p>If you have any question, feel free to send me a message. Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9293ba3d4d8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>