<commit_before># News Insights

Currently hosted [here](http://newsinsights.mybluemix.net/)

Uses Alchemy API.

Note: Loading `alchemyapi_node` as a git submodule from
https://github.com/kauffecup/alchemyapi_node. This means that once you clone
this repo down, you'll need to run:

    git submodule init
    git submodule update

# Configuration

If running on Bluemix, make sure you bind Alchemy with your API key. If running
locally, make `server/config.json` that is the same structure as `VCAP_SERVICES`
is on Bluemix. For example:

```json
{
   "user-provided": [
      {
         "name": "AlchemyAPI-2e",
         "label": "user-provided",
         "credentials": {
            "apikey": "your-key-goes-here"
         }
      }
   ]
}
```

# License

This app is licensed under the Apache 2.0 License. Full license text is
available in [LICENSE](https://github.com/kauffecup/news-insights/blob/master/LICENSE).

# Contact Me

All of my contact information can be found [here](http://www.jkaufman.io/about/)<commit_msg>updates to README<commit_after># Election Insights

Currently hosted [here](http://newsinsights.mybluemix.net/)

The Election Insights app uses Alchemy News API to display a bubble map of
what's being talked about in real time and how people feel about them. The app
uses Alchemy's taxonmy breakdown to focus specifically on the election, and uses
Alchemy's entity breakdown and sentiment analaysis to display the data visually.

The size of the bubbles are dictated by how much they're being discussed and the
color is dictated by the average sentiment around that entity.

![screenshot](http://i.imgur.com/D1uinel.png)

# Configuration

In Bluemix you will need to bind mongolabs and bind Alchemy with your API key.
If running locally, make `server/config.json` that is the same structure as
`VCAP_SERVICES` is on Bluemix. For example:

```json
{
   "user-provided": [
      {
         "name": "AlchemyAPI-2e",
         "label": "user-provided",
         "credentials": {
            "apikey": "your-key-goes-here"
         }
      }
   ]
   ...
}
```

# Running the app locally

Note: Loading `alchemyapi_node` as a git submodule from
https://github.com/kauffecup/alchemyapi_node. This means that once you clone
this repo down, you'll need to run:

    git submodule init
    git submodule update

Then all you need to do is

    npm install
    npm start

There's also a helper `npm dev` that kicks off the server and runs `gulp dev`
which handles watchify and re-compiling less->css when files change.


# License

This app is licensed under the Apache 2.0 License. Full license text is
available in [LICENSE](https://github.com/kauffecup/news-insights/blob/master/LICENSE).

# Contact Me

All of my contact information can be found [here](http://www.jkaufman.io/about/)
{'fraction_non_alphanumeric': 0.09178571428571429, 'fraction_numerical': 0.0025, 'mean_word_length': 3.411023622047244, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4750583', 'n_tokens_mistral': 893, 'n_tokens_neox': 834, 'n_words': 327}