wangell/lyza — pull request #20 by Midnightcoffee (2014-10-05 15:44:50+00:00)
Title: make variables more explictand add simple tests

The goal here was to make the code easier to understand and to prepare it to connect with the "database_connection" branch. One big TODO in this code is a test for the scores that lyza returns. That is, are they correct, what we expect, etc... Additionally I would like some feedback on the code structure, inputs & outputs. For instance, lyza.sentiment_analysis current takes a list of texts [ "hello world, "Good game", etc]. My next step, without feedback, is to write code to allow for the returned scores [1.5, 2, etc] to be written to what ever source the texts came from (in our case the database)] so the db would have an additional column "polarity".