Skip to content
Snippets Groups Projects
Commit dea0a8df authored by Marcin Wątroba's avatar Marcin Wątroba
Browse files

Update spacy models

parent fd233ba7
Branches
No related merge requests found
......@@ -25,7 +25,7 @@ RUN poetry run python -m spacy download en_core_web_lg
RUN poetry run python -m spacy download it_core_news_lg
RUN poetry run python -m spacy download nl_core_news_lg
RUN poetry run python -m spacy download sp_core_news_lg
RUN poetry run python -m spacy download pt_core_news_lg
RUN poetry run python -m spacy download es_core_news_lg
poetry run python -m spacy download de_core_news_lg
poetry run python -m spacy download pl_core_news_lg
......@@ -33,4 +33,4 @@ poetry run python -m spacy download en_core_web_lg
poetry run python -m spacy download it_core_news_lg
poetry run python -m spacy download nl_core_news_lg
poetry run python -m spacy download sp_core_news_lg
poetry run python -m spacy download pt_core_news_lg
poetry run python -m spacy download es_core_news_lg
def get_spacy_model_name(language_code_2_letter: str) -> str:
if language_code_2_letter == 'en':
return 'en_core_web_lg'
return f'{language_code_2_letter}_core_news_lg'
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment