https://github.com/vivek3141/news-visualization
A tool to visualize news articles and their relevance using machine learning
https://github.com/vivek3141/news-visualization
animation api flask js natural-language-processing news-visualization nltk p5js python visualization
Last synced: over 1 year ago
JSON representation
A tool to visualize news articles and their relevance using machine learning
- Host: GitHub
- URL: https://github.com/vivek3141/news-visualization
- Owner: vivek3141
- Created: 2018-12-01T19:30:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T21:09:04.000Z (over 7 years ago)
- Last Synced: 2023-03-02T04:25:50.094Z (over 3 years ago)
- Topics: animation, api, flask, js, natural-language-processing, news-visualization, nltk, p5js, python, visualization
- Language: Python
- Homepage: https://vivek3141.github.io/news-visualization/
- Size: 217 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# news-visualization
A tool to visualize news articles and their relevance using machine learning. It makes a network of
news articles based on the current news or a topic typed in. Connections represent similarities,
which are calculated using NLP.
## Requirements
Install the requirements by
* make
```bash
sudo make
```
* pip
```
sudo pip3 install -r requirements.txt
```
NOTE: Superuser is only required if python is stored in `/usr/local`.
## Built Using:
* `p5js` for visualization
* `bootstrap` for the front end
* Hosted on `heroku` for back end. NOTE: This is sometimes shut down for other projects.
* `flask` for the API, `flask-cors` to make it run well on Heroku.
* `Newsapi`, `Newspaper3k` for getting the news and parsing.
## Results
## Running it locally
You can change the host in `api.py` and change the address in `visualize.js`.
For example, `api.py` by default will run on `0.0.0.0` on port `5000`. Changing
```js
var endpoint = "https://news-visual.herokuapp.com/?topic=" + topic;
```
to
```js
var endpoint = "http://0.0.0.0:5000/?topic=" + topic;
```
accesses the local api.
NOTE: Make sure to change to `http://` instead of `https://`