Skip to content
Snippets Groups Projects
Commit 6afa1ee8 authored by Empiriker's avatar Empiriker
Browse files

update Readme and requirements

parent 3f5a36a6
No related branches found
No related tags found
No related merge requests found
......@@ -2,21 +2,44 @@
## Installation
1. Install wikitextprocessor from source:
Wiktionary dump files need to be downloaded manually.
0. 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
```
git clone https://github.com/tatuylonen/wikitextprocessor.git
cd wikitextprocessor
python -m pip install -U pip
python -m pip install --use-pep517 .
2. Install requirements.txt
```
pip install -r requirements.txt
```
- Commit `e5296c16f2d715e62121f23cb5057374da48cda3` was used during development.
_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._
2. Clone wiktextract
### Using Docker
```
https://github.com/tatuylonen/wiktextract.git
docker build -t live-query-wiktextract .
```
- Commit `205c4a2d88c27113f0117e0095f466605976af81` was used during development.
## 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
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment