{"id":783,"date":"2018-01-14T08:28:12","date_gmt":"2018-01-14T08:28:12","guid":{"rendered":"http:\/\/www.rangakrish.com\/?p=783"},"modified":"2018-01-14T08:46:35","modified_gmt":"2018-01-14T08:46:35","slug":"analysing-screenplay-in-mathematica-part-2","status":"publish","type":"post","link":"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/","title":{"rendered":"Analysing Screenplay in Mathematica &#8211; II"},"content":{"rendered":"<p>In the previous post I showed how we can use <strong>Mathematica<\/strong> to analyse screenplays, and gave some interesting statistics about the various characters and scenes from the movie <em><strong>The Prestige<\/strong><\/em>. In today\u2019s post, I want to continue that discussion by sharing some more statistics, and then look at another movie, <em><strong>The Bourne Ultimatum<\/strong><\/em>.<\/p>\n<p>We concluded last post by showing the number of dialogs for some of the lead characters in <em><strong>The Prestige<\/strong><\/em>. Today, let us start by looking at the number of scenes in which the lead characters appear (in descending order):<\/p>\n<figure id=\"attachment_784\" aria-describedby=\"caption-attachment-784\" style=\"width: 396px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Num-Scenes.png\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"784\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/num-scenes\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Num-Scenes.png\" data-orig-size=\"396,415\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Characters vs. Scenes\" data-image-description=\"&lt;p&gt;Characters vs. Scenes&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Characters vs. Scenes&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Num-Scenes.png\" class=\"size-full wp-image-784\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Num-Scenes.png?resize=396%2C415\" alt=\"Characters vs. Scenes\" width=\"396\" height=\"415\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Num-Scenes.png?w=396&amp;ssl=1 396w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Num-Scenes.png?resize=286%2C300&amp;ssl=1 286w\" sizes=\"(max-width: 396px) 100vw, 396px\" \/><\/a><figcaption id=\"caption-attachment-784\" class=\"wp-caption-text\"><strong>Characters vs. Scenes<\/strong><\/figcaption><\/figure>\n<p>It is interesting that the top seven entries in the table are the same as in the <a href=\"http:\/\/www.rangakrish.com\/index.php\/2018\/01\/01\/analysing-screenplay-with-mathematica\/\" target=\"_blank\" rel=\"noopener\"><em><strong>Dialogs<\/strong><\/em><\/a> table. For instance, <em><strong>ANGIER<\/strong><\/em> appears in 79 scenes and mouths 286 dialogs. Let us calculate the ratio of the number of dialogs to the number of scene appearances.<\/p>\n<figure id=\"attachment_785\" aria-describedby=\"caption-attachment-785\" style=\"width: 414px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"785\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/scene-dialog-ratio\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png\" data-orig-size=\"414,411\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Dialog-Scene Ratio\" data-image-description=\"&lt;p&gt;Dialog-Scene Ratio&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Dialog-Scene Ratio&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png\" class=\"size-full wp-image-785\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png?resize=414%2C411\" alt=\"Dialog-Scene Ratio\" width=\"414\" height=\"411\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png?w=414&amp;ssl=1 414w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-dialog-ratio.png?resize=300%2C298&amp;ssl=1 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/a><figcaption id=\"caption-attachment-785\" class=\"wp-caption-text\"><strong>Dialog-Scene Ratio<\/strong><\/figcaption><\/figure>\n<p>We see that <em><strong>OWENS<\/strong><\/em> has a ratio of 10.33, the largest in the table. This is because, despite appearing in barely 3 scenes, he delivers 31 dialogs. He is followed by <em><strong>OLIVIA<\/strong><\/em>, with a ratio of 5.7 (97 dialogs over 17 scenes).<\/p>\n<p>Next, let us sort the various scenes with respect to the number of characters appearing in a scene. See the table below.<\/p>\n<figure id=\"attachment_786\" aria-describedby=\"caption-attachment-786\" style=\"width: 601px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scenes-chars.png\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"786\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/scenes-chars\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scenes-chars.png\" data-orig-size=\"601,423\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Characters in Scenes\" data-image-description=\"&lt;p&gt;Characters in Scenes&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Characters in Scenes&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scenes-chars.png\" class=\"size-full wp-image-786\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scenes-chars.png?resize=601%2C423\" alt=\"Characters in Scenes\" width=\"601\" height=\"423\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scenes-chars.png?w=601&amp;ssl=1 601w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scenes-chars.png?resize=300%2C211&amp;ssl=1 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/a><figcaption id=\"caption-attachment-786\" class=\"wp-caption-text\"><strong>Characters in Scenes<\/strong><\/figcaption><\/figure>\n<p>We can see that scenes 16, 27, 82, 91, 158, and 186 all have 4 characters appearing in them, followed by many scenes with 3 characters (this table is incomplete). Are there scenes with no character appearances? Yes.<\/p>\n<figure id=\"attachment_787\" aria-describedby=\"caption-attachment-787\" style=\"width: 543px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-chars2.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"787\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/scene-chars2\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-chars2.png\" data-orig-size=\"543,418\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Scene Characters (Contd.)\" data-image-description=\"&lt;p&gt;Scene Characters (Contd.)&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Scene Characters (Contd.)&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-chars2.png\" class=\"size-full wp-image-787\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-chars2.png?resize=543%2C418\" alt=\"Scene Characters (Contd.)\" width=\"543\" height=\"418\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-chars2.png?w=543&amp;ssl=1 543w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Scene-chars2.png?resize=300%2C231&amp;ssl=1 300w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/a><figcaption id=\"caption-attachment-787\" class=\"wp-caption-text\"><strong>Scene Characters (Contd.)<\/strong><\/figcaption><\/figure>\n<p>Such scenes typically have action descriptions.<\/p>\n<p>OK, now let us look at a different movie &#8211; <em><strong>The Bourne Ultimatum<\/strong><\/em>.<\/p>\n<p>The following table shows the number of dialogs spoken by the main characters.<\/p>\n<figure id=\"attachment_788\" aria-describedby=\"caption-attachment-788\" style=\"width: 631px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-dialogs.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"788\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/bourne-dialogs\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-dialogs.png\" data-orig-size=\"631,436\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Character Dialogs\" data-image-description=\"&lt;p&gt;Character Dialogs&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Character Dialogs&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-dialogs.png\" class=\"size-full wp-image-788\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-dialogs.png?resize=631%2C436\" alt=\"Character Dialogs\" width=\"631\" height=\"436\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-dialogs.png?w=631&amp;ssl=1 631w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-dialogs.png?resize=300%2C207&amp;ssl=1 300w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/><\/a><figcaption id=\"caption-attachment-788\" class=\"wp-caption-text\"><strong>Character Dialogs<\/strong><\/figcaption><\/figure>\n<p>And here is the number of scenes where the characters make an appearance:<\/p>\n<figure id=\"attachment_789\" aria-describedby=\"caption-attachment-789\" style=\"width: 403px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-scenes.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"789\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/bourne-scenes\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-scenes.png\" data-orig-size=\"403,409\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Character Scenes\" data-image-description=\"&lt;p&gt;Character Scenes&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Character Scenes&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-scenes.png\" class=\"size-full wp-image-789\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-scenes.png?resize=403%2C409\" alt=\"Character Scenes\" width=\"403\" height=\"409\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-scenes.png?w=403&amp;ssl=1 403w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Bourne-scenes.png?resize=296%2C300&amp;ssl=1 296w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/a><figcaption id=\"caption-attachment-789\" class=\"wp-caption-text\"><strong>Character Scenes<\/strong><\/figcaption><\/figure>\n<p>Here also we see the top 5 elements to be the same in both tables. Let us also calculate the ratio of dialogs to scenes.<\/p>\n<figure id=\"attachment_792\" aria-describedby=\"caption-attachment-792\" style=\"width: 430px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-dialogs.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"792\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/bourne-scene-dialogs\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-dialogs.png\" data-orig-size=\"430,404\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Ratio of Scenes to Dialogs\" data-image-description=\"&lt;p&gt;Ratio of Scenes to Dialogs&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Ratio of Scenes to Dialogs&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-dialogs.png\" class=\"size-full wp-image-792\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-dialogs.png?resize=430%2C404\" alt=\"Ratio of Scenes to Dialogs\" width=\"430\" height=\"404\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-dialogs.png?w=430&amp;ssl=1 430w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-dialogs.png?resize=300%2C282&amp;ssl=1 300w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><figcaption id=\"caption-attachment-792\" class=\"wp-caption-text\">Ratio of Scenes to Dialogs<\/figcaption><\/figure>\n<p>Compared to <em><strong>The Prestige<\/strong><\/em>, the dialogs-to-scene values are comparatively less. This could be because <a href=\"http:\/\/www.imdb.com\/title\/tt0482571\/\" target=\"_blank\" rel=\"noopener\"><em><strong>The Prestige<\/strong><\/em><\/a> is a <strong>Drama<\/strong> according to <strong>IMDB<\/strong>\u00a0whereas The <a href=\"http:\/\/www.imdb.com\/title\/tt0440963\/\" target=\"_blank\" rel=\"noopener\"><em><strong>Bourne Ultimatum<\/strong><\/em><\/a>\u00a0is an <strong>Action<\/strong> movie.<\/p>\n<p>Finally, the number of characters appearing in different scenes:<\/p>\n<figure id=\"attachment_790\" aria-describedby=\"caption-attachment-790\" style=\"width: 487px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-chars.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"790\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/14\/analysing-screenplay-in-mathematica-part-2\/bourne-scene-chars\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-chars.png\" data-orig-size=\"487,406\" data-comments-opened=\"1\" data-image-meta=\"{&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;}\" data-image-title=\"Scenes vs. Characters\" data-image-description=\"&lt;p&gt;Scenes vs. Characters&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Scenes vs. Characters&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-chars.png\" class=\"size-full wp-image-790\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-chars.png?resize=487%2C406\" alt=\"Scenes vs. Characters\" width=\"487\" height=\"406\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-chars.png?w=487&amp;ssl=1 487w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/bourne-scene-chars.png?resize=300%2C250&amp;ssl=1 300w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/a><figcaption id=\"caption-attachment-790\" class=\"wp-caption-text\"><strong>Scenes vs. Characters<\/strong><\/figcaption><\/figure>\n<p>Again, we see that there are scenes that have even 5 or 6 characters, whereas the maximum in <em><strong>The Prestige<\/strong><\/em> was just 4. Not sure if this is related to the genre of movies. Further investigation might reveal interesting insights.<\/p>\n<p>While it is very tempting to study the scripts even further from a computational point of view, I would like to stop here. If I dig into this some more, I will be happy to share the data with you all.<\/p>\n<p><a href=\"http:\/\/www.rangakrish.com\/downloads\/Screenplay analysis-2.nb\" target=\"_blank\" rel=\"noopener\">Here<\/a> is the updated Mathematica source file.<\/p>\n<p>Have a great day!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous post I showed how we can use Mathematica to analyse screenplays, and gave some interesting statistics about the various characters and scenes from the movie The Prestige. In today\u2019s post, I want to continue that discussion by sharing some more statistics, and then look at another movie, The Bourne Ultimatum. We concluded [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,17],"tags":[],"class_list":["post-783","post","type-post","status-publish","format-standard","hentry","category-mathematica","category-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9OLnF-cD","jetpack-related-posts":[{"id":760,"url":"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/01\/analysing-screenplay-with-mathematica\/","url_meta":{"origin":783,"position":0},"title":"Analysing Screenplay with Mathematica","author":"admin","date":"January 1, 2018","format":false,"excerpt":"I have a close relative who is an aspiring movie screenplay writer. During one of our recent meetings, he shared with me with a lot of interesting information about screenplay writing and its challenges. He even lent me a few good books to read further. One of the books is\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Character Names","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Character-Names.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Character-Names.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Character-Names.png?resize=525%2C300 1.5x"},"classes":[]},{"id":348,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/09\/26\/computer-vision-with-mathematica\/","url_meta":{"origin":783,"position":1},"title":"Computer Vision with Mathematica","author":"admin","date":"September 26, 2016","format":false,"excerpt":"Over the past several weeks, I have been discussing many interesting features of Mathematica. As a continuation, today, I would like to show some cool functionality in the domain of computer vision and machine learning. The function ImageIdentify[] tries to identify the object in the given image. According to the\u2026","rel":"","context":"In &quot;Machine Learning&quot;","block_context":{"text":"Machine Learning","link":"https:\/\/www.rangakrish.com\/index.php\/category\/machine-learning\/"},"img":{"alt_text":"A Truck","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/truck-fig.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":328,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/09\/11\/natural-language-processing-in-mathematica\/","url_meta":{"origin":783,"position":2},"title":"Natural Language Processing in Mathematica","author":"admin","date":"September 11, 2016","format":false,"excerpt":"Welcome back. Today I am going to share with you some of the nice capabilities of Mathematica in the area of Natural Language Processing (NLP). Let us start with words. What if we wish to know\u00a0the various definitions of the word image?\u00a0Here is the answer. Mathematica gives the various senses\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Word Definition","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/word-data1-1024x238.png?resize=700%2C400 2x"},"classes":[]},{"id":285,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/07\/22\/using-julia-to-interact-with-mathematica\/","url_meta":{"origin":783,"position":3},"title":"Using Julia to Interact with Mathematica","author":"admin","date":"July 22, 2016","format":false,"excerpt":"Mathematica is a powerful environment for symbolic and numerical computation. I have been using it for many years now. In this post\u00a0I had explained how we can use Mathematica bundled with Raspberry distribution to control littleBits devices. When I saw that there is support in Julia for interacting with Mathematica,\u2026","rel":"","context":"In &quot;Julia&quot;","block_context":{"text":"Julia","link":"https:\/\/www.rangakrish.com\/index.php\/category\/julia\/"},"img":{"alt_text":"Julia Session","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/07\/Julia-1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1541,"url":"https:\/\/www.rangakrish.com\/index.php\/2019\/04\/21\/textcontents-function-in-mathematica-12\/","url_meta":{"origin":783,"position":4},"title":"TextContents[ ] Function in Mathematica 12","author":"admin","date":"April 21, 2019","format":false,"excerpt":"Mathematica 12 was released a few days ago.\u00a0 It has been over a year since version 11.3 came out in March 2018. The long wait appears justified since the new release boasts of numerous improvements and new features across several areas. You may want to read this blog post\u00a0by Stephen\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Importing Text File","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/04\/FileImport.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/04\/FileImport.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/04\/FileImport.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":409,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/11\/02\/working-with-linguistic-data-in-mathematica\/","url_meta":{"origin":783,"position":5},"title":"Working with Linguistic Data in Mathematica","author":"admin","date":"November 2, 2016","format":false,"excerpt":"There are many interesting functions in Mathematica for working with language data, not just in English but in many other languages too. The DictionaryLookup[] function is a good starting point. Let us see what languages are supported as part of dictionary lookup: That is a good collection. It is nice\u2026","rel":"","context":"In &quot;Mathematica&quot;","block_context":{"text":"Mathematica","link":"https:\/\/www.rangakrish.com\/index.php\/category\/mathematica\/"},"img":{"alt_text":"Supported Languages","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/11\/dict-1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/11\/dict-1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/11\/dict-1.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":0,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/783\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}