Skip to content
Part of OD2WD project
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data/dump
src
.gitignore
Pipfile
Pipfile.lock
README.md
app.py
requirements.txt
wsgi.py
wsgi.py.save

README.md

od2wd_api

Part of OD2WD project

Development Guide

How to set up your machine

  1. Setup and activate your Python virtual environment using pipenv.

  2. Still in the directory where you've cloned this repo, install all its dependencies.

    pipenv sync
  3. Download Wikipedia dump data from https://dumps.wikimedia.org/idwiki/latest/idwiki-latest-pages-articles.xml.bz2

  4. Put Wikipedia dump data in data/dump/

  5. Create word2vec model and elasticsearch index for the first time

    flask setup_all
  6. Run the app using

    flask run
  7. Update index using

    flask update_index [index_name]
You can’t perform that action at this time.