mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Allows disabling NLTK, adds it as a consideration for low power devices
This commit is contained in:
parent
c44c914d3d
commit
1e891414a3
3 changed files with 9 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ class DocumentClassifier:
|
|||
content = re.sub(r"[^\w\s]", " ", content)
|
||||
|
||||
# If the NLTK language is supported, do further processing
|
||||
if settings.NLTK_LANGUAGE is not None:
|
||||
if settings.NLTK_LANGUAGE is not None and settings.NLTK_ENABLED:
|
||||
|
||||
import nltk
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue