commit f57548cefd990956690d6bac3fb8cf6a7be33c6d parent ed78993b1cbbd9bfec39803c29f8f26aeff94cee Author: Stefan Koch <programming@stefan-koch.name> Date: Tue, 7 Nov 2023 18:31:01 +0100 note about other spacy model installation methods Diffstat:
M | Dockerfile | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/Dockerfile b/Dockerfile @@ -13,6 +13,11 @@ COPY src/nlparrot /opt/nlparrot/src/nlparrot RUN pip install -e /opt/nlparrot # installs a Python package, thus before creation of user +# Alternative installation approaches, maybe more suited to an installation +# that also works well outside a Docker container are: +# - installation via pip +# - installation from within Python (would then be the same as stanza) +# cf. https://spacy.io/usage/models#download-pip RUN python -m spacy download hr_core_news_sm RUN useradd --create-home nlparrot