| commit | 989372977ab4c35f004dee1ea8c8248c97e7c5c9 | [log] [tgz] |
|---|---|---|
| author | Marc Kupietz <kupietz@ids-mannheim.de> | Sat Mar 14 17:28:05 2026 +0100 |
| committer | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Mar 15 17:53:42 2026 +0100 |
| tree | 979e8a2cfdc2c44b3d55746d80d64bd7cdc6abf9 | |
| parent | 82da431e0bc056be11bb6f9fffc526a5ac6b0707 [diff] |
Switch to docker based tei2korapxml Change-Id: I6055526789051f65d77e095f05dca428efb33217
make -j $(nproc) test
make -j $(nproc) test index
INDEX=./target/dnb.index docker compose -p korap4dnb --profile=lite -f korap4dnb-compose.yml up -d xdg-open http://localhost:4000/?q=Test
docker compose -p korap4dnb down
Install prerequisite korap/conllu2treetagger and korap/conllu2spacy docker images if not present:
docker image inspect korap/conllu2treetagger:latest || curl -Ls 'https://gitlab.ids-mannheim.de/KorAP/CoNLL-U-Treetagger/-/jobs/artifacts/master/raw/conllu2treetagger.xz?job=build-docker-image' | docker load docker image inspect korap/conllu2spacy:latest || curl -Ls https://corpora.ids-mannheim.de/tools/conllu2spacy.tar.xz | docker load
Make annotations fro dnb20:
make -j $(nproc) target/dnb20.marmot-malt.zip target/dnb20.spacy.zip target/dnb20.tree_tagger.zip
make -j $(( $(nproc) / 2 )) index
By default, as sources directories, all directories in ./DeLiKo@DNB are used. Note that (due to a bug in the Makefile), the nesting depth of the EPUB files must be exactly 2. You can check, what files will be converted, by running ls DeLiKo@DNB/*/*.epub.
The new index will be built as target/dnb.index.
make clean && time make -j $(( $(nproc) / 2 )) index SRC_DIR=./Buchpreis
The index will be in target/dnb.index.
and start the docker:
INDEX=./target/dnb.index docker compose -p deliko-2025 --profile=lite -f deliko-xl-compose.yml up -d
docker compose -p deliko-2025 down
docker compose -p deliko-2025 --profile=lite restart
xdg-open http://localhost:4000/?q=Test
ProxyPass / http://localhost:4000 ProxyPassReverse / http://localhost:4000 ProxyPass /plugin/export http://localhost:7777 # export plugin ProxyPassReverse /plugin/export http://localhost:7777