Create package for stand-off-data-py

This commit is contained in:
Patrick Jentsch
2021-07-22 16:59:29 +02:00
parent 4dea95a108
commit a4b2fc3a65
5 changed files with 75 additions and 35 deletions

View File

@ -38,7 +38,7 @@ RUN apt-get install --no-install-recommends --yes \
&& pip3 install "spacy==${SPACY_VERSION}"
# Only models that include the following components are compatibel:
# Only models that include the following components are compatibel:
# lemmatizer, ner, parser, senter, tagger,
ENV SPACY_MODELS="de_core_news_md,en_core_web_md,it_core_news_md,nl_core_news_md,pl_core_news_md,zh_core_web_md"
ENV SPACY_MODELS_VERSION=3.0.0
@ -51,6 +51,13 @@ RUN apt-get install --no-install-recommends --yes \
zip
COPY packages .
RUN cd stand-off-data-py \
&& python3 setup.py build \
&& python3 setup.py install \
&& cd -
## Install Pipeline ##
COPY nlp spacy-nlp vrt-creator /usr/local/bin/