{"id":296,"date":"2020-02-10T23:00:47","date_gmt":"2020-02-10T23:00:47","guid":{"rendered":"http:\/\/eipsoftware.com\/musings\/?p=296"},"modified":"2021-10-03T21:52:38","modified_gmt":"2021-10-03T21:52:38","slug":"lyrical-success","status":"publish","type":"post","link":"https:\/\/eipsoftware.com\/musings\/lyrical-success\/","title":{"rendered":"Lyrical Success"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\"><strong>I&#8217;m not gonna write you a love song<\/strong> &#8211; <a href=\"https:\/\/www.youtube.com\/watch?v=qi7Yh16dA0w\">Sara Bareilles<\/a><\/p>\r\n\r\n\r\n\r\n<h2>Post 1 of 4<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A question I&#8217;ve always wondered is their a magic formula for creating a number one song. Many song writers are prolific however their song doesn&#8217;t necessarily have commercial success. It may be difficult to quantify how the musical composition relates to the song&#8217;s success. However I am going to make an attempt at evaluating the lyrics of songs to determining if we can accurately predict if a song will be commercially successful.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">I am using the Billboard Hot 100 to determine how well a song did commercially. The rank is in ascending order. The song that sold the most copies and where applicable had the most streams will be ranked first. The ranking is unique and doesn&#8217;t align with how other sources may rank the commercial success of a song in prior periods. The rankings are issued weekly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The project is multi-steps, to help with readability I am going to break up the steps in to their own posts.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"has-large-font-size wp-block-paragraph\"><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/\" data-type=\"URL\" data-id=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/\"><strong>Getting the Data<\/strong><\/a><\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" style=\"font-size: 20px;\">\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/#get-songs-by-artist\">Get the Songs Made by the Artists<\/a><\/li>\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/#extract-list-songs-by-artist\">Extract the List of Songs by the Artist<\/a><\/li>\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/#web-scrap-lyrics-each-song\">Scrap the Lyrics for Each Song by the Artist<\/a><\/li>\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/#extract-lyrics-from-html-file\">Extract the Lyrics from Each File<\/a><\/li>\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/#web-scarp-rankings-artist\">Scrap Rankings by Artists<\/a><\/li>\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/11\/lyrical-success-getting-the-data\/#parse-song-rankings\">Parse the Song Rankings Files<\/a><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"has-large-font-size wp-block-paragraph\"><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/10\/lyrical-success-preparing-the-data\/\">Preparing the Data<\/a><\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/10\/lyrical-success-preparing-the-data\/#clean_rankings\">Clean the Rankings<\/a><\/li>\r\n<li><a href=\"https:\/\/eipsoftware.com\/musings\/2020\/02\/10\/lyrical-success-preparing-the-data\/#match_song_ranks\">Match the Song Ranks<\/a><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"has-large-font-size wp-block-paragraph\"><a href=\"https:\/\/eipsoftware.com\/musings\/lyrical-success-model-prediction\/\">Model Prediction<\/a><\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><a href=\"#song-summary\" data-type=\"internal\" data-id=\"#song-summary\">Song Summary<\/a><\/li>\r\n<li><a href=\"#visualizations\" data-type=\"internal\" data-id=\"#visualizations\">Visualizations<\/a><\/li>\r\n<li><a href=\"#lyric-details\" data-type=\"internal\" data-id=\"#lyric-details\">Prepare the Lyrics for Analysis<\/a><\/li>\r\n<li><a href=\"#model-building\" data-type=\"internal\" data-id=\"#model-building\">Model Building<\/a><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not gonna write you a love song &#8211; Sara Bareilles Post 1 of 4 A question I&#8217;ve always wondered is their a magic formula for creating a number one song. Many song writers are prolific however their song doesn&#8217;t necessarily have commercial success. It may be difficult to quantify how the musical composition relates [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[3,58,4,5,59],"tags":[28,35,56],"series":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-python","category-datascience","category-code","category-r","category-songlyrics","tag-python","tag-r","tag-data-science"],"_links":{"self":[{"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":14,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":427,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/posts\/296\/revisions\/427"}],"wp:attachment":[{"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/tags?post=296"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/eipsoftware.com\/musings\/wp-json\/wp\/v2\/series?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}