Skip to content
Snippets Groups Projects
user avatar
Empiriker authored
6afa1ee8

live-query-wiktextract

Installation

Wiktionary dump files need to be downloaded manually.

  1. Download Wiktionary dumpfiles from https://dumps.wikimedia.org/ and place at ./dumps/

Local python environment

  1. Create a virtual environment
virtualenv live-query-wiktextract
source live-query-wiktextract/bin/activate
  1. Install requirements.txt
pip install -r requirements.txt

Since wiktextract is not regularly published as a Python package, we fix version control to a specific commit. That commit was used and tested during development.

Using Docker

docker build -t live-query-wiktextract .

Usage

With local environment

python src/load_templates.py
flask --app src/app.py run --debug

Using Docker

docker run -p 5000:80 live-query-wiktextract