<?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 One AI on Medium]]></title>
        <description><![CDATA[Stories by One AI on Medium]]></description>
        <link>https://medium.com/@devrel_83374?source=rss-c730ee209009------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7apkjtNb0dh_b64qbUMf-Q.png</url>
            <title>Stories by One AI on Medium</title>
            <link>https://medium.com/@devrel_83374?source=rss-c730ee209009------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:33:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devrel_83374/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[One AI to Promote Cutting Edge NLP Papers to the Research Community and Industry]]></title>
            <link>https://medium.com/one-ai/one-ai-to-promote-cutting-edge-nlp-papers-to-the-research-community-and-industry-7e2a358c68fa?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e2a358c68fa</guid>
            <category><![CDATA[academia]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 13:57:23 GMT</pubDate>
            <atom:updated>2022-07-13T18:49:13.324Z</atom:updated>
            <content:encoded><![CDATA[<p><em>When creating an interactive demo of your NLP paper becomes as easy as placing a Git link, the NLP community will be able to rethink the way ideas are distributed.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YmAD2XMMeeuQOd6VqOEHBA.png" /><figcaption>Pictured article by <a href="https://scholar.google.co.il/citations?user=_AZDDnMAAAAJ&amp;hl=iw">Ori Ernst</a></figcaption></figure><p>Groundbreaking progress often happens on the sidelines of the research community. <a href="https://www.oneai.com/">One AI</a>’s platform helps to ensure accessibility to all research outcomes. We believe NLP should become an integral and natural part of everyday life, which is why we provide these researchers with the exposure they need, both in the academic world and the industry.</p><p>One AI’s Language Studio allows researchers to quickly upload their models to a visual, interactive platform. Models can then be reviewed and experimented with in real time, demonstrating how theory is translated into practice. Parties looking for NLP solutions can test and implement these models, giving them an opportunity to create true impact.</p><p><a href="https://studio.oneai.com/pipeline-output?pipeline=TTrLBr"><em>Here</em></a><em> you can see the live demo </em><a href="https://scholar.google.co.il/citations?user=_AZDDnMAAAAJ&amp;hl=iw"><em>Ori Ernst</em></a><em> and </em><a href="https://scholar.google.co.il/citations?hl=iw&amp;user=YzGAGtoAAAAJ"><em>Prof. Ido Dagan</em></a><em> from </em><a href="https://www.biu.ac.il/en"><em>BIU</em></a><em> used while presenting their paper “</em><a href="https://aclanthology.org/2022.naacl-main.128.pdf"><em>Proposition-Level Clustering for Multi-Document Summarization</em></a><em>” in </em><a href="https://2022.naacl.org/"><em>NAACL 2022</em></a><em>.</em></p><p>To learn more, please contact us at <a href="/service/mailto:asi@oneai.com">papers@oneai.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e2a358c68fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/one-ai/one-ai-to-promote-cutting-edge-nlp-papers-to-the-research-community-and-industry-7e2a358c68fa">One AI to Promote Cutting Edge NLP Papers to the Research Community and Industry</a> was originally published in <a href="https://medium.com/one-ai">One AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conversational Sentiment APIs]]></title>
            <link>https://medium.com/one-ai/conversational-sentiment-apis-2142dcd11f4?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/2142dcd11f4</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 13:54:15 GMT</pubDate>
            <atom:updated>2022-07-14T10:44:07.865Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>— Read hundreds of articles about sentiment APIs? Let me tell you something new!</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*UV4EvHG17NNH1UZ9.jpg" /></figure><p>A lot of companies have already developed Sentiment APIs that use Machine Learning under the hood. At the same time, you probably heard that the domain of input text can often heavily impact results (e.g you want to process legal documents, so you need to double-check the quality of the API you use, as the model probably wasn’t trained on legal data). Now, what if you want to deal with dialogs? Imagine how often the way we chat differs from the way we, let’s say, write a tweet!</p><p>Because of this, I surfed the Internet to find the APIs that work with conversations, and was surprised at how few I found 🥲. Today, I’m going to review three such APIs: <a href="https://www.studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=vitaliy">One AI</a>, <a href="https://docs.symbl.ai/docs/">Symbl.ai</a>, and <a href="https://cloud.google.com/natural-language">Google’s API</a>, which is not specialized for dialog, but is commonly used. This way we we can see the importance of the usage of conversational sentiment against the usual one.</p><p><em>For the comparison, I’ll use three properties:</em></p><ul><li><em>setup and usage simplicity</em></li><li><em>pricing</em></li><li><em>accuracy</em></li></ul><p>To evaluate the accuracy I used the <a href="https://affective-meld.github.io/">MELD</a> dataset, that consists of dialogs from the Friends TV series. There are audio files, but we want to process the transcriptions. This makes the dataset quite challenging, as we lose a lot of information stored in the intonation, something we will see in the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*EI__zbXLnlN5yXbJ.gif" /></figure><h3>1. Natural Language API by Google</h3><p>As I mentioned, this API is not supposed to specialize in conversations. Because of this, I split the conversation into utterances and passed them through separately. While doing this adds a bit of work, overall the usage of the API is quite simple:</p><pre>from google.cloud import language_v1</pre><pre># init the client<br>google_client = language_v1.LanguageServiceClient()</pre><pre># create the input<br>document = language_v1.Document(content=utterance, type_=language_v1.Document.Type.PLAIN_TEXT)</pre><pre># make a request<br>sentiment = google_client.analyze_sentiment(request={&quot;document&quot;: document})</pre><p>The only thing I want to mention is that the setup of the API requires some effort. You need to create a project, enable billing, enable the API, set up authentication, then install and initialize the gcloud CLI, and finally — install a proper pip package. The model details are <a href="https://cloud.google.com/natural-language/docs/setup">here</a>. Personally, I’d prefer something that is easier to set up.</p><p>The monthly pricing is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*JFMX0obCE6-7aa3f.png" /><figcaption>Cloud Natural Language Pricing</figcaption></figure><p>The accuracy I got on the test set is: <strong>55%</strong></p><h3>2. Symbl.ai</h3><p>They are focused on analyzing conversations and have a bunch of APIs such as Topics, Action Items, Summary, and more. You can process text, audio, or video. The tricky thing I found is that the processing of your conversation is done in 2 steps: first, you sent your conversation on the process endpoint and get the conversationId, then, using this conversationId, you do one more request to get the sentiment results. In my experiments, I needed to wait a bit (~1sec) between these steps to get the result, but as I understand it, it&#39;s done to make the API asynchronous. The code snippet looks like this:</p><pre>import json<br>import requests<br>url = &quot;<a href="https://api.symbl.ai/v1/process/text">https://api.symbl.ai/v1/process/text</a>&quot;</pre><pre>dialog = {<br>    &#39;messages&#39;: [<br>        ...<br>    ]<br>}</pre><pre># set your access token here.<br>access_token = &quot;&quot;headers = {<br>    &#39;Authorization&#39;: &#39;Bearer &#39; + access_token,<br>    &#39;Content-Type&#39;: &#39;application/json&#39;<br>}</pre><pre># make a request to get `conversationId`<br>response = requests.request(&quot;POST&quot;, url, headers=headers, data=json.dumps(dialog))<br>conv_id = response.json()[&#39;conversationId&#39;]</pre><pre># make a request to get sentiment<br>sentiment_response = requests.get(f&quot;<a href="https://api.symbl.ai/v1/conversations/%7Bconv_id%7D/messages?sentiment=true">https://api.symbl.ai/v1/conversations/{</a>conv_id<a href="https://api.symbl.ai/v1/conversations/%7Bconv_id%7D/messages?sentiment=true">}/messages?sentiment=true</a>&quot;, headers=headers)</pre><p>The steps for getting access_token were easy compared to the work I did to set up the Google API, so this part I liked.</p><p>The pricing plans is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*qwur54KvsrAvvj2-.png" /><figcaption>Symbl.ai Pricing</figcaption></figure><p>To be honest, I think that 10K words for free is nothing.</p><p>They have a customizable Enterprise plan as well.</p><p>The accuracy I got was <strong>60%</strong>: Btw, they noted that it’s just the Beta version of the Sentiment API, so maybe we will see a more accurate model soon.</p><h3>3. One AI</h3><p>There are a bunch of APIs here too, such as Topics, Action Items, Summary, and more. In addition to this, you can process the conversation as well as the article, so it’s more multipurpose. As was the case with Symbl.ai, you can pass text and audio through, but not video. According to the usage — you can use an SDK (available for Node.js and Python) or you can do raw requests. I will show you the Python SDK example, that just looks so pretty to me:</p><pre>import oneai<br>oneai.api_key = &quot;&quot;</pre><pre>pipeline = oneai.Pipeline(<br>    steps = [<br>        oneai.skills.Sentiments()<br>    ]<br>)</pre><pre>conversation = oneai.Conversation(<br>    [<br>        oneai.Utterance(<br>            speaker=&quot;Joey&quot;,<br>            utterance=&quot;You liked it? You really liked it?&quot;<br>        ),<br>        ...<br>    ]<br>)</pre><pre>output = pipeline.run(conversation)</pre><p>The setup steps were easy too, so I hope that cloud platforms such as GCP and AWS will somehow simplify their process in the future.</p><p>The pricing for One AI is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/0*BjwuGXkMDPNdWztt.png" /><figcaption>One AI Pricing</figcaption></figure><p>And finally, the accuracy I got was <strong>61%</strong></p><p>One more cool feature: you can check the API without any coding using the <strong>Language Studio</strong>, which looks cool as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ESJhGmZh2fAn_pvw.png" /></figure><h3>Summary:</h3><p>First of all, if you’ve read this far, this round of applause is for you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/0*zfeAn93RitJfxE9O.gif" /></figure><p>I decided to summarize all my findings in one table for you, and give my own rating for each observed property:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/0*PKzRNv_-PnHNHzGG.png" /></figure><p>So, I hope I’ve introduced something valuable and new in the world of sentiment API, and given you an idea of the importance of choosing the right API for your specific task.</p><p>Feel free to try the one that fits your needs the best, and if you have any questions I’ll be glad to answer them 🙌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2142dcd11f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/one-ai/conversational-sentiment-apis-2142dcd11f4">Conversational Sentiment APIs</a> was originally published in <a href="https://medium.com/one-ai">One AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Summarizing Website Articles Made Easy]]></title>
            <link>https://medium.com/@devrel_83374/summarizing-website-articles-made-easy-fc290504a9c9?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc290504a9c9</guid>
            <category><![CDATA[summarization]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[web-apps]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Tue, 12 Jul 2022 18:10:09 GMT</pubDate>
            <atom:updated>2022-07-12T18:10:09.318Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In this tutorial we will create a web app that can summarize articles using AI.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8y8ztjhvcPHixIlk" /><figcaption>Example of an article summary using the web app (left) and the original article (right).</figcaption></figure><p>Some of you may be thinking, OK, but why would this be useful? Here are some examples:</p><p><strong>DnD character summary: </strong>While playing DnD there are many characters to remember and it gets more complex as the game moves on (sometimes for years). In this example we created a summary for a character using the web app. This summary significantly shortens the available information on the character to a simple, easy to understand, paragraph:</p><blockquote>Tara Kazaku is the Grand Duchess of Skala Bashni. Known for her political skills and combat prowess, she’s been the ruler for the past four centuries. In addition to her responsibilities and duties as a grand duchess, she established the Concertivish Ostigi, an academy dedicated to the teaching of music.</blockquote><p>(original article at:<a href="https://www.worldanvil.com/w/numidius/a/tara-kazaku-person"> https://www.worldanvil.com/w/numidius/a/tara-kazaku-person</a>)</p><p><strong>News article summary: </strong>Sometimes we want to stay informed but reading a whole article takes too much time. In this example we summarized a BBC article, shortening it to a TL;DR snippet using the web app:</p><blockquote>Heathrow has been told to cut passenger charges for airlines each year until 2026 by the Civil Aviation Authority. At the moment Heathrow charges airlines £30.19 per passenger, and the CAA says it wants the cap on the average charge per passenger to fall to £26.31. But Heathrow wants to charge £41.</blockquote><p>(original article at:<a href="https://www.bbc.com/news/business-61933731"> https://www.bbc.com/news/business-61933731</a>)</p><p><strong>Wikipedia entries: </strong>Wikipedia contains information, tons of information. If you want to learn a new definition you can use the web app to learn it quickly, without having to read through word origin, etymology and additional definitions. For example, we got a summary for the definition of viscosity:</p><blockquote>Viscosity quantifies the internal frictional force between adjacent layers of fluid that are in relative motion. For a tube with a constant rate of flow, the strength of the compensating force is proportional to the fluid’s viscosity. In other materials, stresses are present which can be attributed to the rate of change of change.</blockquote><p>(original article at: <a href="https://en.wikipedia.org/wiki/Viscosity#Dynamic_viscosity">https://en.wikipedia.org/wiki/Viscosity#Dynamic_viscosity</a>)</p><p>So, how do we actually get these summaries easily quickly?</p><h4>Here is the tutorial</h4><p>Start by creating a new file in VSC called app.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*eA6Ehfz-PapGLjPw" /></figure><p><strong>In VSC TERMINAL</strong></p><pre>Create virtual environment:<br>&gt;&gt; virtualenv env</pre><pre>Activate virtual environment:<br>&gt;&gt; env\Scripts\activate.bat</pre><pre>Install packages in VSC Terminal:<br>&gt;&gt; pip install flask<br>&gt;&gt; pip install flask-wtf<br>&gt;&gt; pip install wtforms<br>&gt;&gt; pip install requests</pre><p>Create a folder called templates in the project directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/0*x06T2u9N_8eW41we" /></figure><p>Inside templates create 3 html files : base.html, index.html, navbar.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*R9wuFBYikQ0-j2ev" /></figure><p>In app.py:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5044b26c40c51a3248435fa53044798/href">https://medium.com/media/c5044b26c40c51a3248435fa53044798/href</a></iframe><p>Now <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=yael">signup to One AI’s studio</a> and get your API key (its free).</p><p>In base.html:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cdd8ab42732e38ae1a8690f4de09578/href">https://medium.com/media/7cdd8ab42732e38ae1a8690f4de09578/href</a></iframe><p>In index.html:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/185ba6a8f52d8c937e92c6c6643c863f/href">https://medium.com/media/185ba6a8f52d8c937e92c6c6643c863f/href</a></iframe><p>In navbar.html:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35d6e1513cdd2f7a787e954a2a76b0c9/href">https://medium.com/media/35d6e1513cdd2f7a787e954a2a76b0c9/href</a></iframe><p>After that run the code.</p><p><strong>Then in VSC terminal:</strong></p><p>&gt;&gt; flask run</p><p>Go to localhost (<a href="http://127.0.0.1:5000/">http://127.0.0.1:5000/</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*CkcC4jTWZIGrjsSm" /></figure><p>Add article html and press the submit button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*FD81pFS9p_MNyjgy" /></figure><p>Finally you will get your much anticipated result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*sI1wcv0Fm6nu4Ss0" /></figure><p>Another cool way to create summaries is by <a href="https://medium.com/one-ai/use-code-to-analyze-the-topics-in-news-articles-4636420eeeeb"><strong>Automatically Creating Summaries using the BeautifulSoup library</strong></a></p><p>That’s it! Now you can summarize with ease, and don’t forget to let us know what you think on our <a href="https://discord.com/invite/ArpMha9n8H">Discord Community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc290504a9c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use Code to Analyze the Topics in News Articles]]></title>
            <link>https://medium.com/one-ai/use-code-to-analyze-the-topics-in-news-articles-4636420eeeeb?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/4636420eeeeb</guid>
            <category><![CDATA[news-articles]]></category>
            <category><![CDATA[topics]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Tue, 12 Jul 2022 17:51:38 GMT</pubDate>
            <atom:updated>2022-07-12T17:51:38.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lUwVf3LO_mtJDf_M" /><figcaption>Photo by <a href="https://unsplash.com/@lucabravo?utm_source=medium&amp;utm_medium=referral">Luca Bravo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Today, it is simple to create code that lists the topics mentioned in news articles, and even counts the number of times each topic is discussed. This can be used to analyze themes across an article for example, or even themes across a news outlet. See what a majority of articles are discussing easily to pick up on common topics occurring across articles.</p><p>These are the packages you need to install:</p><pre>$ pip install requests<br>$ pip install BeautifulSoup<br>$ pip install one ai</pre><p>You will also need to get your own API key at the <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=yael">One AI studio</a> (don’t worry, it’s free).</p><pre>import requests<br>from bs4 import BeautifulSoup<br>import oneai</pre><pre>oneai.api_key = &quot;&lt;your API key&gt;&quot;</pre><p>Then we need to get all the links to the articles — let’s take the BBC News web page as an example and create a blank dictionary for all the topics to be added</p><pre>url = &quot;https://www.bbc.com/news&quot;<br>response = requests.get(url)<br>coverpage = response.text<br>soup = BeautifulSoup(coverpage, &#39;html.parser&#39;)<br>links = soup.find_all(&#39;a&#39;, class_=&quot;gs-c-promo-heading&quot;)<br>topics = {}</pre><p>After that we go through all the articles and get the topics mentioned in them.</p><pre>for link in links:<br>    text = &quot;https://www.bbc.com&quot; + link[&#39;href&#39;]<br>    pipeline = oneai.Pipeline(steps=[<br>        oneai.skills.HtmlToArticle(),<br>        oneai.skills.Topics()<br>    ])<br>    try:<br>        output = pipeline.run(text)<br>        for t in output.html_article.topics.values:<br>            if t == &#39;BBC&#39;: pass<br>            elif t in topics:<br>                topics[t] += 1<br>            else:<br>                topics[t] = 1<br>    except Exception as e:<br>        print(e)</pre><p>Then we print the sorted dictionary to show the topics we found with the count number in ascending order</p><pre>print(sorted(topics.items(), key=lambda item: item[1], reverse=True))</pre><p>In this example we got:</p><pre>[(&#39;BBC&#39;, 10), (&#39;Government&#39;, 8), (&#39;Health&#39;, 7), (&#39;Women&#39;, 7), (&#39;Home&#39;, 4), (&#39;Nuclear&#39;, 4), (&#39;Water&#39;, 4), (&#39;War&#39;, 4), (&#39;News&#39;, 4), (&#39;Resignation&#39;, 3), (&#39;Challenge&#39;, 3), (&#39;Tory&#39;, 3), (&#39;Military&#39;, 3), (&#39;Music&#39;, 3), (&#39;Plants&#39;, 3), (&#39;Policy&#39;, 3), (&#39;Commons&#39;, 2), (&#39;BBCCopyright&#39;, 2), (&#39;Cabinet&#39;, 2), (&quot;&#39;Ndrangheta&quot;, 2), (&#39;Ndrangheta&#39;, 2), (&#39;Interview&#39;, 2), (&#39;Friends&#39;, 2),</pre><pre>(&#39;Democracy&#39;, 2), (&#39;Economy&#39;, 2), (&#39;Network&#39;, 2), (&#39;The Arab Barometer&#39;, 2), (&#39;Santana&#39;, 2), (&#39;Social Media&#39;, 2), (&#39;Case&#39;, 2), (&#39;Social&#39;, 2), (&#39;Nato&#39;, 2), (&#39;Radio Liberty&#39;, 2), (&#39;Building&#39;, 2), (&#39;Success&#39;, 2), (&#39;Film&#39;, 2), (&#39;BBC News&#39;, 2), (&#39;BBC World News&#39;, 2), (&#39;Boss&#39;, 2),</pre><pre>(&#39;CEO&#39;, 2), (&#39;Airtasker&#39;, 2), (&#39;Tech&#39;, 2), (&#39;Leadership&#39;, 2), (&#39;Education&#39;, 2), (&#39;UN&#39;, 2), (&#39;Football&#39;, 2), (&#39;Games&#39;, 2), (&#39;Getty ImagesCopyright&#39;, 2), (&#39;Getty Images&#39;, 2), (&#39;the Supreme Court&#39;, 1), (&#39;Product&#39;, 1), (&#39;Restaurant&#39;, 1), (&#39;Practice&#39;, 1), (&#39;NRAI&#39;, 1), (&#39;Studio Electrophonique&#39;, 1), (&#39;Justice&#39;, 1), (&#39;World Service&#39;, 1), (&#39;Stories&#39;, 1), (&quot;Christie&#39;s&quot;, 1),</pre><pre>(&#39;Work&#39;, 1), (&#39;Christie&#39;, 1), (&#39;Dylan&#39;, 1), (&#39;Universe&#39;, 1), (&#39;Quiz&#39;, 1), (&#39;Cinema&#39;, 1), (&#39;@Minions&#39;, 1), (&#39;Minions&#39;, 1), (&#39;TikTok&#39;, 1), (&#39;Latest&#39;, 1), (&#39;Video&#39;, 1), (&#39;JavaScript&#39;, 1), (&#39;BBC Breakfast&#39;, 1), (&#39;the Conservative Party&#39;, 1), (&#39;Family&#39;, 1), (&#39;Pandemic&#39;, 1), (&#39;Help&#39;, 1), (&#39;Trans Rescue&#39;, 1), (&#39;Ecowas&#39;, 1), (&#39;Moose Wala&#39;, 1), (&#39;Identity&#39;, 1), (&#39;Mental Health&#39;, 1), (&#39;EU&#39;, 1), (&#39;PKK&#39;, 1), (&#39;arsenal&#39;, 1), (&#39;Uefa&#39;, 1), (&#39;Manchester City&#39;, 1), (&#39;FA&#39;,</pre><pre>1), (&#39;Champions League&#39;, 1), (&#39;Arsenal&#39;, 1), (&#39;England&#39;, 1), (&#39;Wolfsburg&#39;, 1), (&#39;NI&#39;, 1), (&#39;Ada&#39;, 1), (&#39;Lists&#39;, 1), (&#39;Medical&#39;, 1), (&#39;Writer&#39;, 1), (&#39;Manager&#39;, 1), (&#39;Treasury&#39;, 1), (&#39;Office&#39;, 1), (&#39;Community&#39;, 1), (&#39;Life&#39;, 1), (&#39;BBC TV&#39;, 1), (&#39;Twitter&#39;, 1), (&#39;Betis&#39;, 1), (&#39;Real Betis&#39;, 1), (&#39;Newcastle&#39;, 1), (&#39;Everton&#39;, 1), (&#39;BBC Sport&#39;, 1), (&#39;Chelsea&#39;, 1), (&#39;Race&#39;, 1), (&#39;TotalEnergies&#39;, 1), (&#39;Post&#39;, 1), (&#39;DSM&#39;, 1), (&#39;United&#39;, 1), (&#39;Juventus&#39;, 1), (&#39;Manchester United&#39;, 1), (&#39;Free&#39;, 1), (&#39;Course&#39;, 1), (&#39;Golf&#39;, 1), (&#39;Test&#39;, 1), (&#39;Game&#39;, 1), (&#39;Sex&#39;, 1), (&#39;Sports&#39;, 1), (&#39;Transgender&#39;, 1), (&#39;Salmon&#39;, 1), (&#39;British Triathlon&#39;, 1), (&quot;British Triathlon&#39;s&quot;, 1)]</pre><p>As we can see from the example, a majority of the articles on the BBC News website mention the BBC itself, the government, health and women.</p><p>We can use this in combination with other One AI tools to get even more insights.</p><p>Check out more of our Medium tutorials, and don’t forget to let us know what you think on our <a href="https://discord.com/invite/ArpMha9n8H">Discord Community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4636420eeeeb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/one-ai/use-code-to-analyze-the-topics-in-news-articles-4636420eeeeb">Use Code to Analyze the Topics in News Articles</a> was originally published in <a href="https://medium.com/one-ai">One AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Summarizing Long Conversations, With The Example Of YouTube Podcasts]]></title>
            <link>https://medium.com/@devrel_83374/summarizing-long-conversations-with-the-example-of-youtube-podcasts-4d0b3113fe6f?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d0b3113fe6f</guid>
            <category><![CDATA[abstractive-summarization]]></category>
            <category><![CDATA[long-conversations]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[highlights]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Tue, 12 Jul 2022 17:27:26 GMT</pubDate>
            <atom:updated>2022-07-12T17:27:26.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HR63yasDhzJJJyei" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Abstract</h4><p>In this article, we will show you how to automatically generate abstractive summaries, and extract both highlights and topics from any audio-recorded conversation, regardless of its size and domain. We will be using YouTube conversational podcasts as our example. The tutorial shows how to solve the aforementioned non-trivial tasks in several simple steps, without the need to use any AI models. The corresponding Python code is available for approbation as well.</p><h4>Intro</h4><p>Summarizing information from audio-recorded and virtual meetings (Zoom, Google Meet, business phone calls, etc.) has become more in demand in recent years. The summarization process usually requires the following conversation data:</p><ul><li>Summary of the meeting in a few sentences (which facts/questions/problems were discussed, next steps, etc.)</li><li>Main highlights (sentences) of the meeting</li><li>Topics of the meeting</li></ul><p>Except for the fact that you need to use different AI models for the extraction of such data, the following issues also have to be overcome:</p><ul><li>Processing of long conversation: current state-of-the-art NLP models are limited to the size of input data</li><li>Dealing with different domains: how to extract both highlights and topics without shifting to a specific domain (business, education, sports, etc.)</li></ul><p>Looks quite complicated, doesn’t it? Fortunately, <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=artem">One AI</a> can solve these problems without the need to care about the usage of AI models 😉. The next steps will show how to create such a summary of a YouTube podcast in approximately 100 lines of Python code.</p><h4>Setup</h4><p>Firstly, let’s install the required libraries and import them.</p><pre># pip install oneai<br># pip install pytube<br># pip install moviepy</pre><pre>from pytube import YouTube<br>import oneai<br>from moviepy.editor import *<br>import re</pre><p>We will use the pytube and moviepy packages for the extraction of an audio file from the YouTube video we have selected. The oneai library will allow us to implement all NLP skills on the conversation. In order to use the oneai package, you’ll need to retrieve your free API key from the <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=artem">Language Studio</a> (no need to link your credit card for the free usage plan).</p><h4>Extract audio file from the YouTube podcast</h4><p>Firstly, let us set the URL of the desired video; then we initialize the corresponding object and download the video in the mp4 format.</p><pre># Set podcast address<br>url = &#39;https://www.youtube.com/watch?v=z3FA2kALScU&#39;</pre><pre># Init youtube processing instance<br>yt = YouTube(url)</pre><pre># Get the stream to be downloaded<br>stream = yt.streams.filter(file_extension=&#39;mp4&#39;).first()</pre><pre># Download mp4 file<br>mp4_file = &#39;audio.mp4&#39;<br>stream.download(filename=mp4_file)</pre><p>Since many transcribing services are working with the wav format, let’s convert the retrieved mp4 to the mentioned one. We will also compress the output wav file for better performance. Feel free to play with additional parameters.</p><pre># Convert mp4 to wav<br>wav_file = r&#39;audio.wav&#39;</pre><pre># Read the mp4 file<br>videoclip = VideoFileClip(mp4_file)</pre><pre># Extract and save audio as wav<br># Prepare extra parameters to compress the output file<br>bitrate = &#39;50k&#39;<br>nbytes=2<br>fps=11025</pre><pre>audioclip = videoclip.audio<br>audioclip.write_audiofile(wav_file, bitrate=bitrate, nbytes=nbytes, fps=fps)</pre><pre># Clause clips<br>audioclip.close()<br>videoclip.close()</pre><p>Great! Now we have the audio-recorded conversation. Let’s move on to the extraction of all necessary data.</p><h4>Summarize, extract highlights and topics</h4><p>Firstly, we need to set the API key that we retrieved in the previous ‘Setup’ section.</p><pre>api_key = &quot;YOUR API KEY&quot;<br>oneai.api_key = api_key</pre><p>After that, we prepare the input data and pipelines with the desired skills.</p><pre># Prepare input data (pass the path to your wav audio file)<br># If you already have parsed conversation represented in a text <br># format. You may use other constructor to create your input<br># (see &#39;oneai.Conversation&#39; examples)<br>input_data = oneai.File(wav_file)</pre><pre># Pipeline to parse the audio file, preprocess<br>pipeline_highlights_topics = oneai.Pipeline(steps=[<br>    oneai.skills.Proofread(), # parse audio file, clean text<br>    custom_step, # additional custom processing of the input <br>    oneai.skills.Highlights(), # extract highlights<br>    oneai.skills.Topics() # extract topics<br>])</pre><pre># Pipeline to generate an abstractive summary<br>pipeline_summary = oneai.Pipeline(steps=[<br>    oneai.skills.Summarize() # generate summary text<br>])</pre><p>The input data is constructed by passing the path to the input audio file, so we don’t even need to worry about the transcribing (the API allows analyzing audio files with a duration of up to 5 minutes)! If you already have the transcribed conversation, or you want to use a definite transcribing service, you may prepare your own input data of any size (please see the <a href="https://studio.oneai.com/docs?api=Node.js+SDK+Reference&amp;item=Input&amp;tab=Code+Generator&amp;accordion=Introduction%2CPipeline+API%2CNode.js+SDK+Reference%2CClustering+API&amp;utm_source=content&amp;utm_medium=medium&amp;utm_term=artem">Documentation page</a>).</p><p>Each pipeline consists of several desired skills:</p><ul><li>oneai.skills.Proofread() — clean the conversation from ‘noise’ (removes redundant phrases like ‘you know’, ‘um’, etc.)</li><li>custom_step — our custom step that enables the addition of some custom processing of data (the implementation of this step is available in the <a href="https://colab.research.google.com/drive/1LP-P5b6LOtsPg8N5zTe8zd2j81g0OQNn?usp=sharing">Google Colab Notebook</a>); thus, you may add any of your own functionalities in the middle of the pipeline</li><li>oneai.skills.Highlights() — extract highlights from the conversation</li><li>oneai.skills.Topics() — extract topics from the conversation</li><li>oneai.skills.Summarize() — generate the abstractive summary of the conversation</li></ul><p>Now let’s run the pipelines and wait for results! Most of the generating time is taken by the transcribing service, but if you already have the parsed data you may skip this step and ensure a pretty good execution time 😉.</p><pre>output_highlights_topics = \<br>pipeline_highlights_topics.run(input_data)</pre><pre>output_summary = \<br>pipeline_summary.run(output_highlights_topics.proofread.conversation_preprocessed)</pre><p>That’s it! Now let’s print the results.</p><pre>print(&quot;Summary&quot;)<br>print(output_summary.summary.text)<br>print(&quot;=&quot; * 100)<br>print(&quot;Topics&quot;)<br>topics = [label.value for label in output_highlights_topics.proofread.conversation_preprocessed.topics]<br>print(&quot; | &quot;.join(topics))<br>print(&quot;=&quot; * 100)<br>print(&quot;Highlights&quot;)<br>highlights = [label.value for label in output_highlights_topics.proofread.conversation_preprocessed.highlights]<br>for highlight in highlights:<br>    print(clean_utterance(highlight))</pre><p>The corresponding output data is listed below.</p><pre>Summary<br>As part of a series of questions, Speaker asks people how motivated they are to do something.<br>====================================================================<br>===============================<br>Topics<br>Earth | Dash | Life<br>====================================================================================================<br>Highlights<br>The human body is born.<br>Some of us help them have to go faster.<br>Prevent it.<br>From happening sooner than later.<br>No matter if it&#39;s two goals a day.<br>If you can accomplish those.<br>And achieving your dreams.<br>And achieving your dreams.<br>You were able to.<br>Leave your mark on this earth.<br>In terms of your health.<br>Getting older, but we don&#39;t have to get old.<br>Is a very good indicator.<br>Unhappy with their jobs.<br>Fulfillment in it.<br>Your level of motivation.</pre><p>Looks quite good! If you want to experiment more with this, read the <a href="https://colab.research.google.com/drive/1LP-P5b6LOtsPg8N5zTe8zd2j81g0OQNn?usp=sharing">Google Colab Notebook</a> that contains all the code provided in this tutorial. To use it on other inputs just re-use your <a href="https://studio.oneai.com/settings/api-keys?utm_source=content&amp;utm_medium=medium&amp;utm_term=artem">API key</a> on the URL of the desired video. Visit the <a href="https://studio.oneai.com/docs?api=Node.js+SDK+Reference&amp;item=Input&amp;tab=Code+Generator&amp;accordion=Introduction%2CPipeline+API%2CNode.js+SDK+Reference%2CClustering+API&amp;utm_source=content&amp;utm_medium=medium&amp;utm_term=artem">Documentation page</a> for more details about providing your own conversations/articles, and don’t forget to give us your feedback on our <a href="https://discord.com/invite/ArpMha9n8H">Discord Community</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d0b3113fe6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t Worry — Be Happy (with One AI)]]></title>
            <link>https://medium.com/one-ai/dont-worry-be-happy-with-one-ai-b0955b310059?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0955b310059</guid>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[emai]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Tue, 12 Jul 2022 17:08:35 GMT</pubDate>
            <atom:updated>2022-07-12T17:08:35.091Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Don’t Worry — Be Happy (with One AI)</strong></h3><p><em>Filter out negative and stressful news and stay positive!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aKR2drbFQmLwxHt5" /><figcaption>Photo by <a href="https://unsplash.com/@bernardhermant?utm_source=medium&amp;utm_medium=referral">Bernard Hermant</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Ever wandered around a news website (CNN or any of its kind) and felt depressed or stressed? That’s because the world today is full of bad news, and unfortunately this type of news is proven to attract more clicks.</p><p>So what can you do in order to stay positive in these stressful days? The answer is simple — adapt the stream of news to your needs. Filter all the stress away and only read positive content.</p><p>But… How can you determine if content is positive or negative without reading it? That’s where Language AI comes in handy 😊</p><p>Using <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=aviv_shahar">One AI’s language platform</a> you can easily categorize any article before you decide whether to read it or not.</p><p>For example, you can set up your own ‘Positive News Feed’ using Zapier with the One AI platform. No coding needed!</p><h4><strong>Setting up your positive news feed</strong></h4><p>Here’s how you do it:</p><p><strong>Step 1: </strong>Create a One AI account at <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=aviv_shahar">studio.oneai.com</a> (it’s free!)</p><p><strong>Step 2:</strong> Get your API key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/0*1lopZtygoe227ODW" /><figcaption>Copy API key from here</figcaption></figure><p><strong>Step 3:</strong> Go to <a href="https://zapier.com/">Zapier.com</a> to create a Zap</p><p>You can either copy <a href="https://zapier.com/shared/90b8788cf8ca588c7d3c0bac1c0673e2673d18f9">my Zap</a>, or use the instructions below to create your own:</p><p>a. Use “RSS by Zapier” trigger. Use an RSS URL such as <a href="http://rss.cnn.com/rss/edition_travel.rss">http://rss.cnn.com/rss/edition_travel.rss</a></p><p>b. When creating an action, search for One AI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*itS-bDKFRI3Ko_xI" /><figcaption>Search for One AI</figcaption></figure><p>c. Use the event ‘Sentiments’ — Use the API key you got from the One AI Studio when required</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*gayDYA25qcjSDPcC" /><figcaption>Select ‘Sentiments’</figcaption></figure><p>d. Set the article link as the action</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*__AzadZJxiCnJFRm" /><figcaption>Set article link</figcaption></figure><p>e. Add a filter. For example — only continue if positivity was detected! e.g. There’s an output label that matches — POS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*1jsU2B-XOGjNod6V" /><figcaption>Filter by sentiment</figcaption></figure><p>f. Add another action ‘email by Zapier’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*_Q0FMG8hr8E_fITR" /><figcaption>Add Email by Zapier</figcaption></figure><p>g. Setup outbound email action. Make sure to add your email and include the article link at the body of the email</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*huHkxmCad2jXqPiE" /><figcaption>Setup email action</figcaption></figure><p><strong>Step 4:</strong> Publish the Zap and you’re good to go!</p><p><strong>Step 5: </strong>Don’t forget to let us know what you think on our <a href="https://discord.com/invite/ArpMha9n8H">Discord Community</a></p><p>Enjoy a positive day and interesting news!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0955b310059" width="1" height="1" alt=""><hr><p><a href="https://medium.com/one-ai/dont-worry-be-happy-with-one-ai-b0955b310059">Don’t Worry — Be Happy (with One AI)</a> was originally published in <a href="https://medium.com/one-ai">One AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Meaningful Article Summaries Using Python]]></title>
            <link>https://medium.com/one-ai/creating-meaningful-article-summaries-using-python-bc76934d7b78?source=rss-c730ee209009------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc76934d7b78</guid>
            <category><![CDATA[text-summarization]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[summary]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[One AI]]></dc:creator>
            <pubDate>Mon, 20 Jun 2022 12:32:59 GMT</pubDate>
            <atom:updated>2022-06-21T08:11:19.478Z</atom:updated>
            <content:encoded><![CDATA[<p><em>With just a few lines of code it is possible to summarize articles using Python.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f-28Fl4AVCNcQ5aM" /><figcaption>Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_source=medium&amp;utm_medium=referral">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>In this tutorial we will build an automatic article summarizer using Python and One AI. One AI allows you to define custom language processing behaviors, including summarization, via Pipeline objects. Each Pipeline object is composed of multiple language models which process texts and extract data points from them.</blockquote><p>By the way, this TL;DR was generated with the code shown below (don’t believe it?<a href="https://studio.oneai.com/pipeline-output?pipeline=AAmFga&amp;utm_source=content&amp;utm_medium=medium&amp;utm_term=article_summa_python"> see here</a> 😉)</p><p>In this tutorial we will build an automatic article summarizer using Python. This can be used in your projects wherever you have textual data you want to summarize automatically.</p><p>We’ll be using One AI, an API which provides various AI-powered text processing capabilities, including article summarization.</p><h3>Setup</h3><p>We first need to install One AI’s SDK in our Python environment via</p><pre>pip install oneai</pre><p>The SDK supports Python 3.6.1+, so you should be good to go.<br>Now let’s create an API key- register and get a key in the <a href="https://studio.oneai.com/settings/api-keys?utm_source=content&amp;utm_medium=medium&amp;utm_term=article_summa_python">Language Studio</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFDhc4hcU_UNEKSZo4_YMw.png" /><figcaption>Creating an API key</figcaption></figure><p>Create a file keys.py with the generated API key and add it to .gitignore</p><pre>oneai_api_key = &quot;4EDjaB8zxBy55GoNk5eVGOjbdzhl6wSY6vTnVfAkBCWg0JZZ9E&quot;</pre><p>Now we can use the key in our code. In a different file, add</p><pre>import oneai<br>import keys</pre><pre>oneai.api_key = keys.oneai_api_key</pre><h3>The actual code</h3><p>One AI allows you to define custom language processing behaviors via Pipeline objects, which are defined with a list of Skills. Each Skill wraps multiple language models which process texts and extract data points from them.</p><p>Here’s how to define a Pipeline for text summarization</p><pre>pipeline = oneai.Pipeline(steps=[<br>    oneai.skills.Summarize(),<br>])</pre><p>You can control summary length (in words) with the min_length, max_length parameters in the constructor of Summarize , i.e</p><pre>oneai.skills.Summarize(max_length=20)</pre><p>And that’s basically it- pass your str input to pipeline with</p><pre>output = pipeline.run(your_input)</pre><p>The summary will be stored in output.summary.text. Here’s the entire code</p><pre>import oneai<br>import keys</pre><pre># set a One AI API key, following API calls will use this key<br>oneai.api_key = keys.oneai_api_key</pre><pre># insert your input text here<br>your_input = &quot;summarize this text&quot;</pre><pre># define a pipeline for processing str inputs<br>pipeline = oneai.Pipeline(steps=[<br>    # summarize inputs, with at most 20 words<br>    oneai.skills.Summarize(max_length=20),<br>])</pre><pre># process the input and store the output<br>output = pipeline.run(your_input)</pre><pre># print the summary<br>print(output.summary.text)</pre><p>You can achieve a lot more with Language AI Pipelines &amp; Skills, for example, to extract topics from texts, detect sentiment, and more. Pipelines allow you to perform multiple language processing tasks in a single call, for example:</p><pre>output = oneai.Pipeline(steps=[<br>    # detect positive or negative sentiments<br>    oneai.skills.Sentiments(),<br>    # create a summary<br>    oneai.skills.Summarize(),<br>    # extract topics from the summary<br>    oneai.skills.Topics(),<br>]).run(your_input)</pre><p>In this example, output.sentiments will contain a list of sentiments detected in the input, output.summary.text will contain the summary, and output.summary.topics will contain a list of topics extracted from the summary.</p><p>Check out the <a href="https://studio.oneai.com/?utm_source=content&amp;utm_medium=medium&amp;utm_term=article_summa_python">Language Studio</a>, a visual interface for Language Skills, and let us know what you think at <a href="/service/mailto:devrel@oneai.com">devrel@oneai.com</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBE3N5gwWl5Luhjn6UyJUw.png" /><figcaption>One AI Language Studio</figcaption></figure><p><a href="https://studio.oneai.com/docs?utm_source=content&amp;utm_medium=medium&amp;utm_term=article_summa_python"><strong>See One AI’s documentation for more info</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc76934d7b78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/one-ai/creating-meaningful-article-summaries-using-python-bc76934d7b78">Creating Meaningful Article Summaries Using Python</a> was originally published in <a href="https://medium.com/one-ai">One AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>