Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsoft - Breaking Bard: Using AI to unlock Shakespeare’s greatest works

#1
Breaking Bard: Using AI to unlock Shakespeare’s greatest works

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works.jpg" width="6000" height="3376" title="" alt="" /></div><div><p>Spoiler alert: At the end of Romeo and Juliet, they both die.</p>
<p>OK, as spoilers go, it’s not big. Most people have read the play, watched one of the famous films or sat through countless school lessons devoted to <strong><a href="https://en.wikipedia.org/wiki/William_Shakespeare" target="_blank" rel="noopener noreferrer">William Shakespeare</a></strong> and his work. They know it doesn’t end well for Verona’s most famous couple.</p>
<p>In fact, the challenge is finding something no one knows about the world-famous, 300-year-old play. That’s where artificial intelligence can help.</p>
<p><strong><a href="https://www.linkedin.com/in/philipdavidharvey/" target="_blank" rel="noopener noreferrer">Phil Harvey</a></strong>, a Cloud Solution Architect at Microsoft in the UK, used the company’s <strong><a href="https://azure.microsoft.com/en-us/services/cognitive-services/text-analytics/" target="_blank" rel="noopener noreferrer">Text Analytics API</a></strong> on 19 of The Bard’s plays. The API, which is available to anyone as part of Microsoft’s Azure Cognitive Services, can be used to identify sentiment and topics in text, as well as pick out key phrases and entities. This API is one of several Natural Language Processing (NLP) tools available on <strong><a href="https://azure.microsoft.com/en-us/" target="_blank" rel="noopener noreferrer">Azure</a></strong>.</p>
<p>By creating a series of colourful, <strong><a href="https://powerbi.microsoft.com/en-us/" target="_blank" rel="noopener noreferrer">Power BI</a></strong> graphs (below) showing how negative (red) or positive (green) the language used by The Bard’s characters was, he hoped to shine a new light on some of the greatest pieces of literature, as well as make them more accessible to people who worry the plays are too complex to easily understand.</p>
<div class="has-embed"><button class="cookie-consent-btn">Click here to load media</button></div>
<p>Harvey said: “People can see entire plotlines just by looking at my graphs on language sentiment. Because visual examples are much easier to absorb, it makes Shakespeare and his plays more accessible. Reading language from the 16th and 17th centuries can be challenging, so this is a quick way of showing them what Shakespeare is trying to do.</p>
<p>“It’s a great example of data giving us new things to know and new ways of knowing it; it’s a fundamental change to how we process the world around us. We can now pick up Shakespeare, turn it into a data set and process it with algorithms in a new way to learn something I didn’t know before.”</p>
<p>What Harvey’s graphs reveal is that Romeo struggles with more extreme emotions than Juliet. Love has a much greater effect on him challenging stereotypes of the time that women – the fairer sex – were more prone to the highs and lows of relationships.</p>
<p>“It’s interesting to see that the male lead is the one with more extreme emotions,” Harvey added. “The longest lines, both positive and negative, are spoken by him. Juliet is steadier; she is positive and negative but not extreme in what she says. Romeo is a fellow of more extreme emotion, he’s bouncing around all over the place.</p>
<p>“<strong><a href="https://www.rsc.org.uk/macbeth/" target="_blank" rel="noopener noreferrer">Macbeth</a></strong> is also interesting because there are these two peaks of emotion, and Shakespeare uses the wives at these points to turn the story. I also looked at Helena and Hermia in <strong><a href="https://www.rsc.org.uk/a-midsummer-nights-dream/" target="_blank" rel="noopener noreferrer">A Midsummer Night’s Dream</a></strong>, because they have a crossed-over love story. They are both positive at the start but then they find out something and it gets negative towards the end.”</p>
<figure id="attachment_74802" class="wp-caption aligncenter"><a href="http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works.jpg">&lt;img data-attachment-id=&quot;74802&quot; data-permalink=&quot;https://news.microsoft.com/en-gb/2019/04/23/breaking-bard-using-microsoft-ai-to-unlock-shakespeares-greatest-works/ancient-architecture-art-189532/&quot; data-orig-file=&quot;http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works.jpg&quot; data-orig-size=&quot;6000,3376&quot; data-comments-opened=&quot;1&quot; data-image-meta=&quot;{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}&quot; data-image-title=&quot;ancient-architecture-art-189532&quot; data-image-description=&quot;</p>
<p>statue of William Shakespeare</p>
<p> ” data-medium-file=”https://3er1viui9wo30pkxh1v2nh4w-wpengine.netdna-ssl.com/wp-content/uploads/prod/sites/68/2019/04/ancient-architecture-art-189532-300×169.jpg” data-large-file=”http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works.jpg” class=”wp-image-74802 size-full” src=”http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works.jpg” alt=”statue of William Shakespeare” width=”6000″ height=”3376″ srcset=”http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works.jpg 6000w, https://3er1viui9wo30pkxh1v2nh4w-wpengin...189532-300×169.jpg 300w, https://3er1viui9wo30pkxh1v2nh4w-wpengin...189532-768×432.jpg 768w” sizes=”(max-width: 6000px) 100vw, 6000px”&gt;</a><figcaption class="wp-caption-text">The project required AI working alongside humans to truly understand and fully appreciate Shakespeare’s plays</figcaption></figure>
<p>His Shakespeare graphs are the final step in a long process. After downloading a text file of The Bard’s plays from the internet, Harvey had to process the data to prepare it for Microsoft’s AI algorithms. He removed all the stage directions, keeping the act and scene numbers, the characters’ names and what they said. He then uploaded the text to Microsoft Cognitive Services API, a set of tools that can be used in apps, websites and bots to see, hear, speak, understand and interpret users through natural methods of communication.</p>
<p>The Text Analytics API is pre-trained with an extensive body of text with sentiment associations. The model uses a combination of techniques during text analysis, including text processing, part-of-speech analysis, word placement and word associations.</p>
<p>After scanning the Shakespeare plays, Microsoft’s NLP tool gave the lines of dialogue a score between zero and one – scores close to one indicated a positive sentiment, and scores close to zero indicated a negative sentiment.</p>
<p>However, before you start imagining a world in which only robots read books before telling humans the gist of what happened, Harvey discovered some unexpected challenges with his test.</p>
<p>While the AI system worked well for Shakespeare plays that contained straightforward plots and dialogue, it struggled to determine if more nuanced speech was positive or negative. The algorithm couldn’t work out whether Hamlet’s mad ravings were real or imagined, whether characters were being deceptive or telling the truth. That meant that the AI labelled events as positive when they negative, and vice-versa. The AI believed <strong><a href="https://www.rsc.org.uk/the-comedy-of-errors/" target="_blank" rel="noopener noreferrer">The Comedy of Errors</a></strong> was a tragedy because of the physical, slapstick moments in the play.</p>
<blockquote>
<h3><strong><span><a href="https://azure.microsoft.com/en-gb/" target="_blank" rel="noopener noreferrer">Everything you need to know about Microsoft’s cloud</a></span></strong></h3>
<p><a href="https://azure.microsoft.com/en-gb/" target="_blank" rel="noopener noreferrer"><img data-attachment-id="36755" data-permalink="https://news.microsoft.com/en-gb/2016/12/28/36740/cloudnnew/" data-orig-file="https://3er1viui9wo30pkxh1v2nh4w-wpengine.netdna-ssl.com/wp-content/uploads/sites/68/2016/12/cloudnnew.jpg" data-orig-size="4570,3066" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;5.6&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;NIKON D7000&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1459709483&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;120&quot;,&quot;iso&quot;:&quot;100&quot;,&quot;shutter_speed&quot;:&quot;0.003125&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="cloudnnew" data-image-description data-medium-file="https://3er1viui9wo30pkxh1v2nh4w-wpengine.netdna-ssl.com/wp-content/uploads/sites/68/2016/12/cloudnnew-300x201.jpg" data-large-file="https://3er1viui9wo30pkxh1v2nh4w-wpengine.netdna-ssl.com/wp-content/uploads/sites/68/2016/12/cloudnnew-1600x1073.jpg" class="alignnone size-full wp-image-36755" src="http://www.sickgaming.net/blog/wp-content/uploads/2019/04/breaking-bard-using-ai-to-unlock-shakespeares-greatest-works-1.jpg" alt width="4570" height="3066"></a></p>
</blockquote>
<p>Harvey realised that the parts of the plays that dealt with what truly makes us unique as humans – joking, elation, lying, double meanings, subterfuge, sarcasm – could only be noticed and interpreted by human readers. His project required <strong><a href="https://www.microsoft.com/en-us/ai" target="_blank" rel="noopener noreferrer">AI</a></strong> working alongside humans to truly understand and fully appreciate Shakespeare.</p>
<p>Harvey insists that his experiments with Shakespeare’s plays are just a starting point but that the same combination of AI and humans can eventually be extended to companies and their staff, too.</p>
<p>“Take the example of customers phoning their energy company,” he said. “With Microsoft’s NLP tools, you could see if conversations that happen after 5pm are more negative than those that happen at 9am, and deploy staff accordingly. You could also see if a call centre worker turns conversations negative, even if they start out positive, and work with that person to ensure that doesn’t happen in the future.</p>
<p>“It can help companies engage with data in a different way and assist them with everyday tasks.”</p>
<p>Harvey also said journalists could use the tool to see how readers are responding to their articles, or social media experts would get an idea of how consumers viewed their brand.</p>
<p>For now, Harvey is concentrating on the Classics and is turning his attention to <strong><a href="https://en.wikipedia.org/wiki/Charles_Dickens" target="_blank" rel="noopener noreferrer">Charles Dickens</a></strong>, if he can persuade the V&amp;A in London to let him study some of their manuscripts.</p>
<p>“In the V&amp;A manuscripts, you can see where Dickens has crossed out words. I would love to train a custom vision model on that to get a page by page view of his changes. I could then look at a published copy of the text and see which parts of the book he worked on most; maybe that part went well but he had trouble with this bit. Dickens’s work was serialised in newspapers, so we might be able to deduce whether he was receiving feedback from editors that we didn’t know about. I think that’s amazing.”</p>
<p class="tag-list">Tags: <a href="https://news.microsoft.com/en-gb/tag/ai/" rel="tag" aria-label="Find more content related to &quot;AI&quot;">AI</a>, <a href="https://news.microsoft.com/en-gb/tag/azure/" rel="tag" aria-label="Find more content related to &quot;Azure&quot;">Azure</a>, <a href="https://news.microsoft.com/en-gb/tag/hamlet/" rel="tag" aria-label="Find more content related to &quot;Hamlet&quot;">Hamlet</a>, <a href="https://news.microsoft.com/en-gb/tag/macbeth/" rel="tag" aria-label="Find more content related to &quot;Macbeth&quot;">Macbeth</a>, <a href="https://news.microsoft.com/en-gb/tag/microsoft/" rel="tag" aria-label="Find more content related to &quot;microsoft&quot;">microsoft</a>, <a href="https://news.microsoft.com/en-gb/tag/power-bi/" rel="tag" aria-label="Find more content related to &quot;power BI&quot;">power BI</a>, <a href="https://news.microsoft.com/en-gb/tag/romeo-juliet/" rel="tag" aria-label="Find more content related to &quot;Romeo &amp; Juliet&quot;">Romeo &amp; Juliet</a>, <a href="https://news.microsoft.com/en-gb/tag/shakespeare/" rel="tag" aria-label="Find more content related to &quot;Shakespeare&quot;">Shakespeare</a></p>
</div>
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016