<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/neural-networks-for-learning-lyrics/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.moreorlessnumbers.com/2017/03/neural-networks-for-learning-lyrics.html"> More or Less Numbers</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div dir="ltr">
<div>I created a Twitter account which was inspired by a couple Twitter accounts that applied a particular type of machine learning technique to learn how two (at the time) presidential hopefuls spoke. I thought, why not see what a model like this could do with lyrics from my favorite rock n roll artist?</div>
<div>Long short term memory (LSTM) is a recurrent neural network (RNN) that can be used to produce sentences or phrases by learning from text. The two twitter accounts that inspired this were <a target="_blank" rel="nofollow" href="https://twitter.com/deeplearnbern?lang=en">‘<span>@deeplearnthebern</span>’</a> and <a target="_blank" rel="nofollow" href="https://www.twitter.com/deepdrumpf">‘<span>@deepdrumpf</span>’</a> which use this technique to produce phrases and sentences.</div>
<div>I scraped a little more than 300 of his songs and have fed them to a LSTM model using R and the mxnet library. Primarily I used the <a target="_blank" rel="nofollow" href="http://mxnet.io/">mxnet.io/</a> to build and train the model…great site and tools.  The tutorials on their site are very helpful and particularly <a target="_blank" rel="nofollow" href="http://mxnet.io/tutorials/r/charRnnModel.html">this one</a>.
<div><a target="_blank" rel="nofollow" href="https://i1.wp.com/3.bp.blogspot.com/-Jbz1sAlq6po/WNQeKuzn5fI/AAAAAAAACsw/Dab5NqLi2cABLZ_K9L0mQn9xU6VYofXzwCLcB/s1600/Screen%2BShot%2B2017-03-23%2Bat%2B9.10.05%2BAM.png?ssl=1"><img src="https://i2.wp.com/3.bp.blogspot.com/-Jbz1sAlq6po/WNQeKuzn5fI/AAAAAAAACsw/Dab5NqLi2cABLZ_K9L0mQn9xU6VYofXzwCLcB/s400/Screen%2BShot%2B2017-03-23%2Bat%2B9.10.05%2BAM.png?resize=400%2C173&ssl=1" border="0" data-recalc-dims="1"></a></div>
<p>The repository is <a target="_blank" rel="nofollow" href="https://github.com/justlebeau/justlebeau.github.io/tree/master/brucebot">here</a> that contains the code for the scraper and other information.</div>
<div>Follow <a target="_blank" rel="nofollow" href="https://twitter.com/DeepLearn_Bruce">deeplearnbruce</a> for tweets that are hopefully entertaining for Springsteen fans or anyone else. </div>
</div>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.moreorlessnumbers.com/2017/03/neural-networks-for-learning-lyrics.html"> More or Less Numbers</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/XzIu0zs26Ik"></a></div>