How Much Ink Is Used For Each Letter?
Today I became curious about how much ink is needed to print each of the 26 letters of the English alphabet. Naturally I wrote a program to tell me...
Today I became curious about how much ink is needed to print each of the 26 letters of the English alphabet. Naturally I wrote a program to tell me...
I have been reading "Data Science from Scratch" and porting the python code to perl. In this episode, we use Naive Bayes to predict whether the speaker of a line is either Kirk, Spock or McCoy, with my new, work-in-progress data science library.
tl;dr: is-character.pl
Continue reading Predicting Star Trek Characters with Naive Bayes...
The other day I stumbled across the Wikipedia entry for Halstead software complexity and became curious about how the language Perl would measure up.
Now I knew the adage that "only perl can parse perl", but I also knew about the PPI set of modules on the CPAN. So I got to reading/experimenting...
Continue reading Halstead Software Complexity of Perl Code...
Today I decided to revisit the Bach Choral Harmony data set and look at chord progression transitions.
In order to do this I wrote a small program that tallies the movement from one chord to another, and then outputs a Graphviz dot file that can be turned into an image.
I decided to write my own sentiment analysis library called Lingua::EN::Opinion and use it to investigate the KJV Bible Book of Revelation.