Wednesday 4 December 2013

So Sentimental this computer is.

So inspired by this after seeing it in action I decided to have a go at a bit of textual analysis / sentimental analysis, with visualisations. It has taken about a week in total put together in my spare time, positive words are circles, negative are squares. Verbs are green, nouns are red and so on. The size of the shape is the frequency of the word. The most difficult aspect of it was to get the .txt to parse properly and get rid of all the whitespaces and symbols. I have to trim the text, chop it up in to words, trim them as well. It took a while. Using the word break downs from here, based on the Moby word list and it uses the positive and negative word lists found on this website.

 Homer's Odyssey Book 1 Visualisation.
 Homer's Odyssey Book 1 : Negative words.
Homer's Odyssey Book 1 : Positive words.
Homer's Odyssey Book 1 : Uncertain Words.
 Homer's Odyssey Book 1 : Positive & Negative Words.
Edgar Allen Poe's "Masque of the Red Death" All in, animation.

Each word is an object and it slowly moves around the the screen, I just wanted a nicer way of reading documents all at once, visually.  It was mainly just a test. It was written in Processing and will try and exporting to a webpage so you can have a look at it in motion.