<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>José Miguel González Aguilera</title>
    <description>Looking for solutions to problems instead of problems to the solution</description>
    <link>http://jmgaguilera.github.io/</link>
    <atom:link href="http://jmgaguilera.github.io/feed_R_en.xml" rel="self" type="application/rss+xml" />
    <pubDate>Mon, 31 Oct 2022 21:49:55 +0000</pubDate>
    <lastBuildDate>Mon, 31 Oct 2022 21:49:55 +0000</lastBuildDate>
    <generator>Jekyll v3.9.2</generator>
    
    
          <item>
            <title>Rust en español fácil</title>
            <description>&lt;p&gt;I started to study Rust in 2021. I has new concepts to me like Onwership, borrowed types and traits (something like aspect oriented programming). As usual, I serached for a book which I could translate as part of my learning. Now I finished after more than one year translating in holidays. &lt;a href=&quot;http://www.jmgaguilera.com/rust_facil/&quot;&gt;You can find it here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I hope this translation will facilitate the learning of this compiled language to Spanish-speaking people. I appreciate your feedback if you find mistakes I can correct.&lt;/p&gt;
</description>
            <pubDate>Sun, 30 Oct 2022 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/libro/rust/traducci%C3%B3n/2022/10/30/easy-rust.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/libro/rust/traducci%C3%B3n/2022/10/30/easy-rust.html</guid>
            
            <category>Libro</category>
            
            <category>Rust</category>
            
            <category>Traducción</category>
            
            
            <category>Libro</category>
            
            <category>Rust</category>
            
            <category>Traducción</category>
            
          </item>
    
          <item>
            <title>Happy Christmas and Happy New 2017</title>
            <description>&lt;p&gt;Pues eso, otro año que termina y otro año que nos felicitamos, y, aunque sea unos minutos, nos acordamos que lo bueno y lo malo; de los que estamos y los que perdimos; de lo que deseamos y lo que luchamos por nuestros sueños.&lt;/p&gt;

&lt;p&gt;Y así, aprovechando que la tecnología nos lo pone fácil, nos felicitamos y alegramos de estar aquí y deseamos que el futuro sea todo lo mejor posible para nuestros familiares, amistades y compañeros.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/felicitacion-navidad-2016/felicitacion2016.jpg&quot; style=&quot;display:block;margin-left:auto; margin-right:auto;&quot; width=&quot;800px&quot; /&gt;&lt;/p&gt;

</description>
            <pubDate>Fri, 23 Dec 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/general/2016/12/23/happy-christmas.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/general/2016/12/23/happy-christmas.html</guid>
            
            
            <category>general</category>
            
          </item>
    
          <item>
            <title>Utilidad de traducción de textos a tengwar</title>
            <description>&lt;p&gt;&lt;img src=&quot;/images/tengwar-esp/un_anillo.png&quot; style=&quot;display:block;margin-left:auto; margin-right:auto;&quot; width=&quot;600px&quot; /&gt;&lt;/p&gt;

&lt;center&gt;
  &lt;a href=&quot;http://www.jmgaguilera.com/tengwar-esp/procesador/index.html&quot;&gt;Link to the utility&lt;/a&gt;
  &lt;br /&gt;
  &lt;a href=&quot;http://github.com/jmgaguilera/tengwar-esp&quot;&gt;Source code&lt;/a&gt;
  &lt;br /&gt;
  &lt;/center&gt;

&lt;p&gt;Translator to the writing system, invented by J.R.R. Tolkien, Tengwar. I have developed a grammar in javascript to implement “&lt;a href=&quot;http://lambenor.free.fr/tengwar/espanol_2006.html&quot;&gt;spanish mode of 2006&lt;/a&gt;” to translate texts. This mode, as I know, didn’t have a complete implementation in Internet. Mine has these functions:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Selects tehtar or tengwar (full) vowels.&lt;/li&gt;
  &lt;li&gt;Selects optional rules of spanish mode.&lt;/li&gt;
  &lt;li&gt;Shows the results using two diferents fonts (one of them is based in the famous one of the One Ring).&lt;/li&gt;
  &lt;li&gt;Shows the results with commands of the LaTeX package &lt;a href=&quot;https://www.ctan.org/pkg/tengwarscript?lang=en&quot;&gt;tengwarscript&lt;/a&gt;, to facilitate it’s inclusion in LaTeX documents without learning the meaning of those commands.&lt;/li&gt;
&lt;/ul&gt;

</description>
            <pubDate>Thu, 08 Dec 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/tengwar/latex/gramaticas/javascript/2016/12/08/tengwar-esp-en.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/tengwar/latex/gramaticas/javascript/2016/12/08/tengwar-esp-en.html</guid>
            
            <category>Tengwar</category>
            
            <category>LaTeX</category>
            
            <category>Gramaticas</category>
            
            <category>Javascript</category>
            
            
            <category>Tengwar</category>
            
            <category>LaTeX</category>
            
            <category>Gramaticas</category>
            
            <category>Javascript</category>
            
          </item>
    
          <item>
            <title>Writing Tengwar with LaTeX in Spanish</title>
            <description>&lt;p&gt;I have written an article for the LaTeX wikibook in Spanish with the different alternatives to use the Tengwar writing system of J.R.R. Tolkien with LaTeX.
A tribute to the author of the Lord of the Rings, book that I have read again thanks to the new limited edition of 5,000 copies of Minotauro. By the way, my copy is number 287 😊.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/latex-tengwar/latex-tengwar.png&quot; style=&quot;display:block;margin-left:auto; margin-right:auto;&quot; width=&quot;400px&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The Tengwar writing system is the most developed that Tolkien designed, but not the only one. This is what many people call “Elvish”, but it is not. Actually, in the world of Tolkien there are several Elvish languages, and can be written in alphabetic writing and in “invented” writing systems such as Tengwar.&lt;/p&gt;

&lt;p&gt;Tengwar, besides being the most developed, is the most famous for being used in ring inscription.&lt;/p&gt;

&lt;p&gt;If you are interested, you can learn more in the links to the PDF version, source code and wikibook:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;/files/latex_tengwar/latex_tengwar.pdf&quot;&gt;Edición de textos en Tengwar con LaTeX (Versión PDF)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/files/latex_tengwar/latex_tengwar_tex.zip&quot;&gt;Edición de textos en Tengwar con LaTeX (Código fuente)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://es.wikibooks.org/wiki/Manual_de_LaTeX/Otros/Edici%C3%B3n_de_textos_en_tengwar&quot;&gt;Edición de textos en Tengwar con LaTeX (Versión en wikibooks)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
            <pubDate>Sun, 13 Nov 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/tengwar/latex/2016/11/13/latex-tengwar-en.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/tengwar/latex/2016/11/13/latex-tengwar-en.html</guid>
            
            <category>Tengwar</category>
            
            <category>LaTeX</category>
            
            
            <category>Tengwar</category>
            
            <category>LaTeX</category>
            
          </item>
    
          <item>
            <title>Dive into Python 3</title>
            <description>&lt;p&gt;&lt;em&gt;Finally, I completed my translation of this book!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I started in 2009, after I completed the translation of &lt;a href=&quot;https://github.com/jmgaguilera/swfk-es/releases&quot;&gt;Snake Wrangling for Kids&lt;/a&gt;. Mark Pilgrim published online an new version of &lt;a href=&quot;http://www.diveintopython3.net/&quot;&gt;his famous book, now about Python 3&lt;/a&gt;, so, after talking to him, I started the translation.&lt;/p&gt;

&lt;p&gt;Circunstances of life, personal and work related, I stopped the translation at chapter fourteen. The two final chapters and four appendices were missing… And all the effort in revision and format edition.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/inmersion_python_3/portada.png&quot; style=&quot;display:block;margin-left:auto; margin-right:auto;&quot; width=&quot;400px&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Last may, I took &lt;em&gt;LaTeX&lt;/em&gt; code of the translation, changed it from mercurial to git, and I migrated it to &lt;em&gt;XeLaTeX&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;And now! At the end of holiday, I completed translation and edition. And, as a complement, I generated a HTML version.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;PDF&lt;/strong&gt;: &lt;a href=&quot;http://github.com/jmgaguilera/inmersionenpython3/releases&quot;&gt;http://github.com/jmgaguilera/inmersionenpython3/releases&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;HTML&lt;/strong&gt;: &lt;a href=&quot;http://www.jmgaguilera.com/inmersionenpython3html&quot;&gt;http://www.jmgaguilera.com/inmersionenpython3html&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Código &lt;strong&gt;LaTeX&lt;/strong&gt;: &lt;a href=&quot;https://github.com/jmgaguilera/inmersionenpython3&quot;&gt;http://github.com/jmgaguilera/inmersionenpython3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope this translantion will facilitate the learning of this elegant, dinamic, object oriented language to Spanish-speaking people. I appreciate your feedback if you find mistakes I can correct.&lt;/p&gt;

</description>
            <pubDate>Fri, 19 Aug 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/libro/python/traducci%C3%B3n/latex/2016/08/19/dive-into-python.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/libro/python/traducci%C3%B3n/latex/2016/08/19/dive-into-python.html</guid>
            
            <category>Libro</category>
            
            <category>Python</category>
            
            <category>Traducción</category>
            
            <category>LaTeX</category>
            
            
            <category>Libro</category>
            
            <category>Python</category>
            
            <category>Traducción</category>
            
            <category>LaTeX</category>
            
          </item>
    
          <item>
            <title>Graphics in LaTeX with the package TikZ</title>
            <description>&lt;p&gt;To make a graphic using TikZ can be a crazy endeavour in our days. We
have a lot of graphics tools that ease visual editing (WYSIWYG). But TikZ is
adictive for it’s precision and semantic power. Yes, I am, again,
talking about semantic: it’s so nice to define a tree just writing who
is child of who; it’s so easy to define a graph as a link between nodes
and edges; so simple to draw a function with precision, just by writing the function…&lt;/p&gt;

&lt;p&gt;…And more: the organization and pause that it is necesary to design a
graphic with TikZ, help to ensure that it has sense and consistency, not
just visual impact.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/latex-tikz/latex-tikz-full.png&quot; style=&quot;display:block;margin-left:auto; margin-right:auto;&quot; width=&quot;400px&quot; /&gt;&lt;/p&gt;

&lt;p&gt;These are the links to PDF version, LaTeX source and spanish LaTex wikibook entry:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;/files/latex_tikz/latex_tikz.pdf&quot;&gt;Gráficos con el paquete TikZ en LaTeX (Versión PDF)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/files/latex_tikz/latex_tikz.tex&quot;&gt;Gráficos con el paquete TikZ en LaTeX (Código fuente)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://es.wikibooks.org/wiki/Manual_de_LaTeX/Inclusi%C3%B3n_de_gr%C3%A1ficos/Gr%C3%A1ficos_con_tikz&quot;&gt;Gráficos con el paquete TikZ en LaTeX (Versión en wikibooks)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I finish with a remark: User manual of TikZ has more than… One thousand
pages!!. My article just scratches it surface!&lt;/p&gt;

</description>
            <pubDate>Sun, 15 May 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/tikz/pgf/latex/2016/05/15/latex-tikz-en.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/tikz/pgf/latex/2016/05/15/latex-tikz-en.html</guid>
            
            <category>TikZ</category>
            
            <category>PGF</category>
            
            <category>LaTeX</category>
            
            
            <category>TikZ</category>
            
            <category>PGF</category>
            
            <category>LaTeX</category>
            
          </item>
    
          <item>
            <title>Composing documents about Chess using LaTeX</title>
            <description>&lt;p&gt;It’s very complex to edit a document about chess games in any word
processor, but LaTeX makes it easy. So, I decided to write an article about this and show you how to do it.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/latex-chess/latex-chess-full.png&quot; style=&quot;display:block;margin-left:auto; margin-right:auto;&quot; width=&quot;300px&quot; /&gt;&lt;/p&gt;

&lt;p&gt;These are the links to PDF version, LaTeX source and spanish LaTex wikibook entry:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;/files/latex_chess/latex_chess.pdf&quot;&gt;Composición de documentos sobre Ajedrez usando
LaTeX (Versión PDF)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/files/latex_chess/latex_chess.tex&quot;&gt;Composición de documentos sobre Ajedrez usando
LaTeX (Código fuente)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://es.wikibooks.org/wiki/Manual_de_LaTeX/Otros/Paquetes_para_componer_documentos_sobre_el_juego_del_Ajedrez&quot;&gt;Composición de documentos sobre Ajedrez usando LaTeX (Versión en
wikibooks)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
            <pubDate>Sat, 07 May 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/chess/latex/2016/05/07/latex-chess.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/chess/latex/2016/05/07/latex-chess.html</guid>
            
            <category>chess</category>
            
            <category>LaTeX</category>
            
            
            <category>chess</category>
            
            <category>LaTeX</category>
            
          </item>
    
          <item>
            <title>David Bowie Tribute (and III)</title>
            <description>&lt;p&gt;In the previous article I clusterized the songs and did a tree anlysis. Now, I will try a
practical model to dynamically look for the nearest songs to a given one.&lt;/p&gt;

&lt;h2 id=&quot;los-datos&quot;&gt;Los datos&lt;/h2&gt;

&lt;p&gt;Again, There are 254 songs in 25 albums.&lt;/p&gt;

&lt;p&gt;In this case, to calculate the distance between songs, I will use the
&lt;em&gt;Term frequency - inverse document frequency&lt;/em&gt; (tf-idf) for each word in songs, instead
of the absolute frequency of occurrence of each word.&lt;/p&gt;

&lt;p&gt;The advantage of this algorithm is that it gives more weight to words that are very common in some
documents, but doesn’t appears in a many documents in the corpus. That is, it makes some words more significant than others.
With this system, the word cloud change a bit:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_3_files/figure-html/unnamed-chunk-4-1.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;672&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;nearest-song-to-a-given-one&quot;&gt;Nearest song to a given one&lt;/h2&gt;

&lt;p&gt;With the matrix of terms and using  tf-idf frequencies we can easily determine which songs
are the closest to a given one, based, as in the previous article, in the Euclidean distance between songs.&lt;/p&gt;

&lt;p&gt;This method gives better results than the previous classification tree, in last article, which
It was based on the absolute frequencies.&lt;/p&gt;

&lt;p&gt;Let’s search the nearest songs to &lt;em&gt;Lazarus&lt;/em&gt;:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;song&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;distance&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Lazarus&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.0000000&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cygnet Committee&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.6709544&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Candidate&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7180088&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;You Feel So Lonely You Could Die&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7256923&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;We Are The Dead&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7280794&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Shining Star (Makin' My Love)&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7353172&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Somebody Up There Likes Me&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7379833&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Something In The Air&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7549199&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Ashes To Ashes&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7621797&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Five Years&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7644335&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Now, let’s see the nearest songs to &lt;em&gt;Space Oditty&lt;/em&gt;:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;song&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;distance&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Space Oddity&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.0000000&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Ashes To Ashes&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.8647541&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cygnet Committee&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9391786&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Candidate&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9655204&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;You Feel So Lonely You Could Die&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9688882&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;We Are The Dead&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9700174&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Shining Star (Makin' My Love)&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9855299&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;If You Can See Me&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9894812&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Somebody Up There Likes Me&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.9911007&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Five Years&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;1.0024585&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The algorithm finds that the nearest song is Ashes to Ashes_. That is, the song in which appears
also &lt;em&gt;Major Tom&lt;/em&gt;. This is a significant improvement over the system based on the absolute frequencies
in the previous article (You can look for this song there and observe the difference).&lt;/p&gt;

&lt;p&gt;Let’s try one more song _ “Heroes” _:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;song&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;distance&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;“Heroes”&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.0000000&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Cygnet Committee&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7270792&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;You Feel So Lonely You Could Die&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7499512&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Candidate&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7565930&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;We Are The Dead&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7641921&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Shining Star (Makin' My Love)&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7683600&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Somebody Up There Likes Me&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7725134&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;If You Can See Me&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7843719&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;When I Live My Dream&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.7858126&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Something In The Air&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0.8051492&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;

&lt;h2 id=&quot;network-of-songs&quot;&gt;Network of songs&lt;/h2&gt;

&lt;p&gt;With the distances between songs, we can visualize the relationships between them
through a network.&lt;/p&gt;

&lt;p&gt;With the distances between all of them, the network would be unmanageable. We include just the most important relationships 
to have an idea of what is the result (in any case 254 songs, create a very complex network).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_3_files/figure-html/red_de_canciones.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;768&quot; /&gt;&lt;/p&gt;

&lt;p&gt;You can do &lt;em&gt;infinite&lt;/em&gt; zoom in this network if you open this image in its own tab following this 
link: &lt;a href=&quot;/images/david_bowie_3_files/figure-html/red_de_canciones.svg&quot;&gt;network of songs&lt;/a&gt;. 
Also you can download the image and open it with a &lt;em&gt;svg&lt;/em&gt; viewer.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_3_files/figure-html/zoom_red_canciones.png&quot; alt=&quot;zoom en la red de canciones&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In the center of the image we find the songs who have more relationships. The other songs can be found around these.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1 id=&quot;references&quot;&gt;References&lt;/h1&gt;

&lt;p&gt;The R document (rmarkdown) to reproduce this analysis can be found following &lt;a href=&quot;http://github.com/jmgaguilera/david_bowie&quot;&gt;this link&lt;/a&gt;&lt;/p&gt;

</description>
            <pubDate>Sat, 26 Mar 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/analysis/2016/03/26/david-bowie-III.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/analysis/2016/03/26/david-bowie-III.html</guid>
            
            <category>R</category>
            
            <category>analysis</category>
            
            <category>bowie</category>
            
            
            <category>analysis</category>
            
          </item>
    
          <item>
            <title>David Bowie Tribute (II)</title>
            <description>&lt;script src=&quot;/js/jquery-1.11.3.min.js&quot;&gt;&lt;/script&gt;

&lt;style type = &quot;text/css&quot;&gt;
.main-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
code {
  color: inherit;
  background-color: rgba(0, 0, 0, 0.04);
}
img { 
  max-width:100%; 
  height: auto; 
}
&lt;/style&gt;

&lt;div class=&quot;container-fluid main-container&quot;&gt;

&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot;&gt;
&lt;div class=&quot;prompt input_prompt&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;inner_cell&quot;&gt;
&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot;&gt;
&lt;h1 id=&quot;David-Bowie-II-(buscando-canciones-similares)&quot;&gt;David Bowie II (classifying his songs)&lt;/h1&gt;&lt;p&gt;last article in my blog was dedicated to &lt;a href=&quot;http://www.jmgaguilera.com/an%C3%A1lisis/2016/01/24/david-bowie.html&quot;&gt;David Bowie&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I want to extend it searching relationships in his songs using as a features just his lyrics. Using ununstructured text analysis tools to find the &lt;em&gt;distance&lt;/em&gt; between songs &lt;span class=&quot;as&quot;&gt;&lt;/span&gt;&lt;span class=&quot;br&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mar&quot;&gt;I will use Euclidean distances&lt;/span&gt;&lt;span class=&quot;br&quot;&gt;)&lt;/span&gt;.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot;&gt;
&lt;div class=&quot;prompt input_prompt&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;inner_cell&quot;&gt;
&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot;&gt;
&lt;h2 id=&quot;Antecedentes&quot;&gt;Background&lt;/h2&gt;

&lt;p&gt;We have lyrics of 254 songs.&lt;/p&gt;
&lt;p&gt; Like in last article, we have to convert lyrics to terms, discarding, if possible, the differences between plurals and verbs.&lt;/p&gt;

&lt;h2 id=&quot;T&amp;#233;rminos&quot;&gt;T&amp;#233;rminos&lt;/h2&gt;

&lt;p&gt;First of all, we create a word list to discard. Articles, pronoums, ...&lt;/p&gt;
&lt;blockquote&gt;i, me, my, myself, we, our, ours, ourselves, you, your, yours, yourself, yourselves, he, him, his, himself, she, her, hers, herself, it, its, itself, they, them, their, theirs, themselves, what, which, who, whom, this, that, these, those, am, is, are, was, were, be, been, being, have, has, had, having, do, does, did, doing, a, an, the, and, but, if, or, because, as, until, while, of, at, by, for, with, about, against, between, into, through, during, before, after, above, below, to, from, up, down, in, out, on, off, over, under, again, further, then, once, here, there, when, where, why, how, all, any, both, each, few, more, most, other, some, such, no, nor, not, only, own, same, so, than, too, very, s, t, can, will, just, don, should, now, d, ll, m, o, re, ve, y, ain, aren, couldn, didn, doesn, hadn, hasn, haven, isn, ma, mightn, mustn, needn, shan, shouldn, wasn, weren, won, wouldn, chorus, 'm, 's, 'll, n't, 'd, ca, wo, oh, yeah, x2.&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot;&gt;
&lt;div class=&quot;inner_cell&quot;&gt;
&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot;&gt;
&lt;p&gt;Then we tokenize al lyrics, e.g., &lt;b&gt;Blackstar&lt;/b&gt; lyrics:&lt;/p&gt;
&lt;blockquote&gt;in the villa of ormen in the villa of ormen stands a solitary candle ah-ah ah-ah in the centre of it all in the centre of it all your eyes on the day of execution on the day of execution only women kneel and smile ah-ah ah-ah at the centre of it all at the centre of it all your eyes your eyes ah-ah-ah ah-ah-ah in the villa of ormen in the villa of ormen stands a solitary candle ah-ah ah-ah in the centre of it all in the centre of it all your eyes ah-ah-ah something happened on the day he died spirit rose a metre and stepped aside somebody else took his place and bravely cried i’m a blackstar i’m a blackstar how many times does an angel fall how many people lie instead of talking tall he trod on sacred ground he cried loud into the crowd i’m a blackstar i’m a blackstar i’m not a gangster i can’t answer why i’m a blackstar just go with me i’m not a filmstar i’m-a take you home i’m a blackstar take your passport and shoes i’m not a popstar and your sedatives boo i’m a blackstar you’re a flash in the pan i’m not a marvel star i’m the great i am i’m a blackstar i’m a blackstar way up oh honey i’ve got game i see right so white so open-heart it’s pain i want eagles in my daydreams diamonds in my eyes i’m a blackstar i’m a blackstar something happened on the day he died spirit rose a metre and stepped aside somebody else took his place and bravely cried i’m a blackstar i’m a star star i’m a blackstar i can’t answer why i’m not a gangster but i can tell you how i’m not a flam star we were born upside-down i’m a star star born the wrong way ‘round i’m not a white star i’m a blackstar i’m not a gangster i’m a blackstar i’m a blackstar i’m not a pornstar i’m not a wandering star i’m a blackstar i’m a blackstar in the villa of ormen stands a solitary candle ah-ah ah-ah at the centre of it all your eyes on the day of execution only women kneel and smile ah-ah ah-ah at the centre of it all your eyes your eyes ah-ah-ah&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Now we supress diferences between similar words, discarded words, etc. e.g. &lt;b&gt;Blackstar&lt;/b&gt;:&lt;/p&gt;

&lt;blockquote&gt;villa ormen villa ormen stand solitari candl ah-ah ah-ah centr centr eye day execut day execut women kneel smile ah-ah ah-ah centr centr eye eye ah-ah-ah ah-ah-ah villa ormen villa ormen stand solitari candl ah-ah ah-ah centr centr eye ah-ah-ah someth happen day die spirit rose metr step asid somebodi els took place brave cri i'm blackstar i'm blackstar mani time angel fall mani peopl lie instead talk tall trod sacr ground cri loud crowd i'm blackstar i'm blackstar i'm gangster can't answer i'm blackstar go i'm filmstar i'm-a take home i'm blackstar take passport shoe i'm popstar sedat boo i'm blackstar you'r flash pan i'm marvel star i'm great i'm blackstar i'm blackstar way honey i'v got game see right white open-heart it pain want eagl daydream diamond eye i'm blackstar i'm blackstar someth happen day die spirit rose metr step asid somebodi els took place brave cri i'm blackstar i'm star star i'm blackstar can't answer i'm gangster tell i'm flam star born upside-down i'm star star born wrong way round i'm white star i'm blackstar i'm gangster i'm blackstar i'm blackstar i'm pornstar i'm wander star i'm blackstar i'm blackstar villa ormen stand solitari candl ah-ah ah-ah centr eye day execut women kneel smile ah-ah ah-ah centr eye eye ah-ah-ah &lt;/blockquote&gt;


&lt;p&gt;We do this with all lyrics. At the end we select the list of more frequent words. We will measure the distance between songs using de frequency of words. These are the 30 most frequent words:&lt;/p&gt;

&lt;pre style=&quot;text-align: center;&quot;&gt;
freq        tok      word
---------  -----  -------
16.082115   love     love
13.795538   like     like
11.673021   look     look
11.623957    got      got
11.104668   know     know
11.050255   time     time
10.515605    day      day
10.002770    say     says
 9.683665    eye     eyes
 9.519472  could    could
 9.511280    one      one
 9.362057  never    never
 9.320950    let  letting
 9.214944   come     come
 9.207492   want     want
 9.036289    get      get
 8.794052    man      man
 8.770926   life     life
 8.730971    boy      boy
 8.549849  thing   things
 8.469426     go       go
 8.214135    see      see
 8.118021   feel     feel
 8.037416   live    lives
 7.983238  littl   little
 7.935172   girl    girls
 7.839930   take     take
 7.751650   noth  nothing
 7.165395   make     make
 7.109152   well     well
(...)
&lt;/pre&gt;
&lt;p&gt;We saw this frequent words with the wordcloud of the last article.&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot;&gt;
&lt;div class=&quot;prompt input_prompt&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;inner_cell&quot;&gt;
&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot;&gt;
&lt;p&gt;Now we generate the distance matrix between songs from the matrix of frequencies of terms and documents. With this distance matrix clusterize songs using the &lt;em&gt; ward &lt;/em&gt; method, to form a tree that allows you to see the potential clusters.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot;&gt;
&lt;div class=&quot;prompt input_prompt&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;inner_cell&quot;&gt;
&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot;&gt;
&lt;p&gt;Como hay demasiadas canciones, cuesta distinguirlas en un árbol tan denso. There are too many songs, so it is difficult to guess the clusters in this dense tree. We can see the &lt;emph&gt;trunk of the tree&lt;/emph&gt;:&lt;/p&gt;

&lt;div style=&quot;text-align:center&quot;&gt;
	&lt;img src=&quot;/images/david_bowie_II/ward_clusters_trunk.svg&quot; title=&quot;&quot; alt=&quot;&quot; style=&quot;max-width:65%;max-height:auto&quot;/&gt;
&lt;/div&gt;

&lt;p&gt;We can assume that there are eight large groups. We'll show one by one to see if we find any relationship between the songs contained in them.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_0.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;
The most frequent words in group 0 are:
         freq   term    word
170  5.365048    say    says
224  4.782514   want    want
76   3.478711    got     got
18   2.581732    boy     boy
200  2.482339  thing  things
&lt;/pre&gt;
&lt;p&gt;The first group consists of songs that include the words say, want, got, things and boys, among others.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_1.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 1 are:
         freq  term  word
122  4.380216   man   man
196  4.167142  take  take
18   4.055294   boy   boy
116  4.042343  long  long
67   4.020220   get   get
&lt;/pre&gt;
&lt;p&gt;This group has 112 songs, it can be segregated more than this to analyze his songs. Nevertheless, you can detect that the two nearest songs are &lt;emph&gt;It's no game&lt;/emph&gt;, parts 1 y 2.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_2.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 2 are:
         freq  term  word
119  7.463742  love  love
111  6.080673  like  like
32   5.357936  come  come
204  4.716788  time  time
8    4.685532  babi  baby
&lt;/pre&gt;
&lt;p&gt;The songs of this group speak of love, time, etc.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_3.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 3 are:
         freq    term    word
113  3.624713   littl  little
68   1.478087    girl   girls
56   0.751800    feel    feel
7    0.749316    away    away
233  0.705218  wonder  wonder
&lt;/pre&gt;
&lt;p&gt;The songs of this group speak of girls...&lt;/p&gt;
&lt;br/&gt;

&lt;/pre&gt;
&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_4.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 4 are:
         freq  term     word
38   3.690027   day      day
144  3.295195   one      one
141  2.358883  noth  nothing
41   1.519879   die    dying
109  1.143182  life     life
&lt;/pre&gt;
&lt;p&gt;The songs of this group speak of the day, life and death.&lt;/p&gt;
&lt;br/&gt;


&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_5.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 5 are:
         freq  term   word
119  3.861197  love   love
68   0.995499  girl  girls
138  0.991495   new    new
70   0.553128    go     go
121  0.524290  make   make
&lt;/pre&gt;
&lt;p&gt;The songs of this group are about girls and love.&lt;/p&gt;
&lt;br/&gt;


&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_6.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 6 are:
         freq  term     word
36   3.604493  danc    dance
107  1.408223   let  letting
100  0.982583  know     know
52   0.647080  face     face
197  0.479504  talk  talking
&lt;/pre&gt;
&lt;P&gt; The songs of this group speak of dance. &lt;/ P&gt;
&lt;br/&gt;


&lt;p&gt;&lt;img src=&quot;/images/david_bowie_II/ward_clusters_7.svg&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;1056&quot; /&gt;&lt;/p&gt;
&lt;pre&gt;The most frequent words in group 7 are:
         freq   term   word
117  3.509484   look   look
187  0.770862  sound  sound
70   0.555531     go     go
7    0.545412   away   away
105  0.494563   leav  leave
 &lt;/pre&gt;
&lt;p&gt;And the last group speak primarily about &lt;em&gt;look for&lt;/em&gt; something.&lt;/p&gt;
&lt;br/&gt;

&lt;h2&gt;Epilogue&lt;/h2&gt;

We can do it better, we can group similar words, we can use bigrams, improve and implement tokenization and other algorithms like tf-idf. We can select weights in the words, e.g. rare words in general but very common in certain songs, to select the songs more similar to others in terms of subject.

I just hope, have contributed a bit with this tribute to one of the great  &lt;emph&gt; Pop &lt;/ emph&gt; musicians of our time.

&lt;h2&gt;References&lt;/h2&gt;

&lt;p&gt;This time I used Python to do the analysis. You can use the source in this &lt;a href=&quot;https://github.com/jmgaguilera/david_bowie/tree/master/david_bowie_II&quot;&gt;notebook&lt;/a&gt; of &lt;a href=&quot;http://jupyter.org&quot;&gt;Jupyter.&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div&gt;&lt;/div&gt;
</description>
            <pubDate>Wed, 23 Mar 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/analysis/2016/03/23/david_bowie_II.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/analysis/2016/03/23/david_bowie_II.html</guid>
            
            <category>Python</category>
            
            <category>analysis</category>
            
            <category>bowie</category>
            
            
            <category>analysis</category>
            
          </item>
    
          <item>
            <title>David Bowie Tribute</title>
            <description>&lt;p&gt;Now that everyone is talking nice things about David Bowie, I have to say that 
I did not like him very much when I was young.
I rediscovered him a few years ago with album &lt;em&gt;The Next Day&lt;/em&gt;
I ended up buying the vinyl, at a time when I no longer buy Compact Disc,
It is something I reserve for those albums that exceed my expectations when listening on streaming.&lt;/p&gt;

&lt;p&gt;After listening to &lt;em&gt;Lazarus&lt;/em&gt; few days before his death, the news did not surprise me and
verses of the song took on its full meaning.&lt;/p&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Look up here, I’m in heaven&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;I’ve got scars that can’t be seen&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;I’ve got drama, can’t be stolen&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Everybody knows me now&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Look up here, man, I’m in danger&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;I’ve got nothing left to lose&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;I’m so high it makes my brain whirl&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Dropped my cell phone down below&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;This weekend, listening to the album &lt;em&gt;Blackstar&lt;/em&gt;, I wanted to do my little
tribute with this brief analysis of his lyrics.&lt;/p&gt;

&lt;h1 id=&quot;the-data&quot;&gt;The Data&lt;/h1&gt;

&lt;p&gt;I have developed a Python script that accesses &lt;a href=&quot;http://azlyrics.com&quot;&gt;AZLyrics&lt;/a&gt;, and, with it, I have compiled
the lyrics of
254
songs and
25
albums:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;album&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;year&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;David Bowie&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1967&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Space Oddity&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1969&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The Man Who…&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1970&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Hunky Dory&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1971&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The Rise And Fall…&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1972&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Pin Ups&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1973&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Aladdin Sane&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1973&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Diamond Dogs&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1974&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Young Americans&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1975&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Station To Station&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1976&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;“Heroes”&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1977&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Low&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1977&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Lodger&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1979&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Scary Monsters&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1980&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Let's Dance&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1983&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Tonight&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1984&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Never Let Me Down&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1987&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Black Tie White Noise&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1993&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Outside&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1995&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Earthling&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1997&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Hours…&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1999&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Heathen&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2002&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Reality&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2003&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The Next Day&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2013&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Blackstar&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2016&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h1 id=&quot;what-about-his-songs&quot;&gt;What about his songs&lt;/h1&gt;

&lt;p&gt;This is the wordcloud of his entire career:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_files/figure-html/unnamed-chunk-4-1.png&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;672&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Amd this of the album &lt;em&gt;Space Oddity&lt;/em&gt;:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_files/figure-html/unnamed-chunk-5-1.png&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;672&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Do you see Major Tom to Ground Control calling?&lt;/p&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Am I sitting in a tin can&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Far above the world&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Planet Earth is blue&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;And there’s nothing I can do&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;Space Oddity&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;And this of his latest album &lt;em&gt;Blackstar&lt;/em&gt;:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_files/figure-html/unnamed-chunk-6-1.png&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;672&quot; /&gt;&lt;/p&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Something happened on the day he died&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Spirit rose a metre and stepped aside&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Somebody else took his place, and bravely cried&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;(I’m a blackstar, I’m a blackstar)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;Blackstar&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h1 id=&quot;words-through-the-years&quot;&gt;Words through the years&lt;/h1&gt;

&lt;p&gt;I will now show some important words in their lyrics and
their frequency over the years: god, love, time, star, live &amp;amp; die&lt;/p&gt;

&lt;h2 id=&quot;god--love&quot;&gt;God &amp;amp; Love&lt;/h2&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Check ignition and may God’s love be with you — &lt;em&gt;Space Oddity&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_files/figure-html/unnamed-chunk-7-1.png&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;768&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;time--star&quot;&gt;Time &amp;amp; Star&lt;/h2&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Time, he’s waiting in the wings&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;He speaks of senseless things&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;His script is you and me, boys&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;Time&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;There’s a starman waiting in the sky&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;He’s told us not to blow it&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;‘Cause he knows it’s all worthwhile&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;Starman&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_files/figure-html/unnamed-chunk-8-1.png&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;768&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;die--live&quot;&gt;Die &amp;amp; Live&lt;/h2&gt;

&lt;p&gt;In the two last albums &lt;em&gt;die&lt;/em&gt; appears more than before…&lt;/p&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Here I am&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Not quite dying&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;My body left to rot in a hollow tree&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Its branches throwing shadows&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;On the gallows for me&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;And the next day&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;And the next&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;And another day&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;The next day&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;img src=&quot;/images/david_bowie_files/figure-html/unnamed-chunk-9-1.png&quot; title=&quot;&quot; alt=&quot;&quot; width=&quot;768&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;epilogue&quot;&gt;Epilogue&lt;/h1&gt;

&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;This chaos is killing me&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;This chaos is killing me&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Yeah bye, bye love&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Bye, bye love&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Eternal&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Sweet, sweet love&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Bye bye space boy&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Bye, bye love&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Moon dust will cover you&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Moon dust will cover you&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Moon dust will cover you&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Moon dust will cover you&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Moon dust will cover you&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;em&gt;Hallo spaceboy&lt;/em&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h1 id=&quot;references&quot;&gt;References&lt;/h1&gt;

&lt;p&gt;Document in R (rmarkdown) to reproduce this analysis can be found following &lt;a href=&quot;http://github.com/jmgaguilera/david_bowie&quot;&gt;this link&lt;/a&gt;&lt;/p&gt;

</description>
            <pubDate>Sun, 24 Jan 2016 00:00:00 +0000</pubDate>
            <link>http://jmgaguilera.github.io/analysis/2016/01/24/david-bowie-en.html</link>
            <guid isPermaLink="true">http://jmgaguilera.github.io/analysis/2016/01/24/david-bowie-en.html</guid>
            
            <category>R</category>
            
            <category>analysis</category>
            
            <category>bowie</category>
            
            
            <category>analysis</category>
            
          </item>
    
  </channel>
</rss>
