Skip to content

move nltk folder one up #65

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions paperless-ngx.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ popd

echo "Installing NLTK data"

mkdir -pv ${PROJECT}/data/nltk
mkdir -pv ${PROJECT}/nltk

python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" snowball_data
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" stopwords
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" punkt
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/data/nltk" punkt_tab
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" snowball_data
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" stopwords
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" punkt
python3 -W ignore::RuntimeWarning -m nltk.downloader -d "${PROJECT}/nltk" punkt_tab

popd

Expand Down
2 changes: 1 addition & 1 deletion paperless.conf.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PAPERLESS_CONSUMPTION_DIR=${PROJECT}/consume
PAPERLESS_DATA_DIR=${PROJECT}/data
PAPERLESS_LOGGING_DIR=${LOGDIR}
PAPERLESS_MEDIA_ROOT=${PROJECT}/media
PAPERLESS_NLTK_DIR=${PROJECT}/data/nltk
PAPERLESS_NLTK_DIR=${PROJECT}/nltk
PAPERLESS_SCRATCH_DIR=${TMPDIR}
PAPERLESS_STATICDIR=${PREFIX}/static

Expand Down