Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 1 | default: |
Marc Kupietz | 1f7dd6e | 2024-02-05 06:45:01 +0100 | [diff] [blame^] | 2 | image: python:3.12-slim-bookworm |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 3 | |
| 4 | variables: |
| 5 | PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
| 6 | |
| 7 | cache: |
| 8 | paths: |
| 9 | - .cache/pip |
| 10 | - venv/ |
| 11 | |
| 12 | before_script: |
Marc Kupietz | 5936096 | 2024-02-01 15:51:56 +0100 | [diff] [blame] | 13 | - perl -v |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 14 | - python -m venv venv |
| 15 | - source venv/bin/activate |
| 16 | - export PYTHONPATH=PYTHONPATH:. |
Marc Kupietz | 1f7dd6e | 2024-02-05 06:45:01 +0100 | [diff] [blame^] | 17 | - venv/bin/pip install --upgrade pip |
| 18 | - pip install -r requirements.txt |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 19 | - python -m spacy download de_core_news_lg |
| 20 | - apt update -y |
| 21 | - apt-get install cpanminus -y |
| 22 | - cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git |
| 23 | |
| 24 | test-job: |
| 25 | stage: test |
Marc Kupietz | fc34de6 | 2024-02-01 12:04:27 +0100 | [diff] [blame] | 26 | artifacts: |
| 27 | paths: |
| 28 | - rei.spacy.zip |
Marc Kupietz | 13f40bb | 2024-02-01 15:51:37 +0100 | [diff] [blame] | 29 | - rei.spacy.conllu |
Rebecca Wilm | afbcd7f | 2022-11-09 16:46:48 +0100 | [diff] [blame] | 30 | script: |
| 31 | - mkdir logs |
Marc Kupietz | 13f40bb | 2024-02-01 15:51:37 +0100 | [diff] [blame] | 32 | - korapxml2conllu rei.zip | python ./systems/parse_spacy_pipe.py | tee rei.spacy.conllu | conllu2korapxml > rei.spacy.zip |
Marc Kupietz | 0e6c546 | 2024-02-01 16:33:57 +0100 | [diff] [blame] | 33 | - (! grep -E '^0' ./rei.spacy.conllu) |