blob: 5604ae31d64303bbe2e2e16225ecfb15c812f013 [file] [log] [blame]
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +01001default:
Marc Kupietzfc34de62024-02-01 12:04:27 +01002 image: python:3.11
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +01003
4variables:
5 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
6
7cache:
8 paths:
9 - .cache/pip
10 - venv/
11
12before_script:
13 - python -m venv venv
14 - source venv/bin/activate
15 - export PYTHONPATH=PYTHONPATH:.
Marc Kupietzfc34de62024-02-01 12:04:27 +010016 - cp $(find / -name longintrepr.h) /usr/local/include/python3.11/
17 - pip install --use-pep517 -r requirements.txt
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010018 - python -m spacy download de_core_news_lg
19 - apt update -y
20 - apt-get install cpanminus -y
21 - cpanm https://github.com/KorAP/KorAP-XML-CoNLL-U.git
22
23test-job:
24 stage: test
Marc Kupietzfc34de62024-02-01 12:04:27 +010025 artifacts:
26 paths:
27 - rei.spacy.zip
Marc Kupietz13f40bb2024-02-01 15:51:37 +010028 - rei.spacy.conllu
Rebecca Wilmafbcd7f2022-11-09 16:46:48 +010029 script:
30 - mkdir logs
Marc Kupietz13f40bb2024-02-01 15:51:37 +010031 - korapxml2conllu rei.zip | python ./systems/parse_spacy_pipe.py | tee rei.spacy.conllu | conllu2korapxml > rei.spacy.zip