mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
fix: rename averaged_perceptron_tagger to averaged_perceptron_tagger_eng (#491)
This commit is contained in:
@@ -17,7 +17,7 @@ COPY pyproject.toml uv.lock /app/
|
|||||||
RUN touch README.md && env uv sync --compile-bytecode --locked
|
RUN touch README.md && env uv sync --compile-bytecode --locked
|
||||||
|
|
||||||
# pre-download nltk packages
|
# pre-download nltk packages
|
||||||
RUN uv run python -c "import nltk; nltk.download('punkt_tab'); nltk.download('averaged_perceptron_tagger')"
|
RUN uv run python -c "import nltk; nltk.download('punkt_tab'); nltk.download('averaged_perceptron_tagger_eng')"
|
||||||
|
|
||||||
# bootstrap
|
# bootstrap
|
||||||
COPY alembic.ini runserver.sh /app/
|
COPY alembic.ini runserver.sh /app/
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class LLM:
|
|||||||
if not cls._nltk_downloaded:
|
if not cls._nltk_downloaded:
|
||||||
nltk.download("punkt_tab")
|
nltk.download("punkt_tab")
|
||||||
# For POS tagging
|
# For POS tagging
|
||||||
nltk.download("averaged_perceptron_tagger")
|
nltk.download("averaged_perceptron_tagger_eng")
|
||||||
cls._nltk_downloaded = True
|
cls._nltk_downloaded = True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user