An open API service indexing awesome lists of open source software.

https://github.com/pderkowski/wikimap_ui


https://github.com/pderkowski/wikimap_ui

node2vec tsne visualization wikipedia word2vec

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Interactive map of Wikipedia in your browser

A tool for exploring the map of Wikipedia articles.

[English version](http://wikimap.pioder.com/en)

[Polish version](http://wikimap.pioder.com/pl)

## Requirements
* python 2.7
* nodejs
* elasticsearch

## Installation
1. Clone the repo:
```
git clone git@github.com:pderkowski/wikimap_ui.git
cd wikimap_ui
```
2. Install Python packages from requirements.txt. I recommend using pip and
virtualenv:
```
virtualenv env --no-site-packages
source env/bin/activate
pip install -r requirements.txt
```
3. Install JS packages:
```
npm install
```
4. Create a bundle from the JS sources using webpack:
```
make js
```

## Usage
1. A dataset generated by [wikimap](https://github.com/pderkowski/wikimap) is
required and should be placed in the './data' folder. A small toy dataset is
available
[here](https://drive.google.com/file/d/0BzQFWeoeCMPwd0Q0a3VxRHJMcTQ/view).
2. Start the elasticsearch process.
3. Create indices for data:
```
python ./reset_indices --langs en
```
4. Run the app:
```
python ./run.py
```
The app should be available in the browser at 0.0.0.0:5000